N.Y. Election Law § 6-142
2. An independent nominating petition for the nomination of candidates for an office to be filled by the voters of any other political unit must be signed by voters numbering five per centum of the total number of votes cast for governor at the last gubernatorial election in such unit, excluding blank and void votes, except that not more than three thousand five hundred signatures shall be required upon any such petition for any office to be filled in any political subdivision of the state wholly outside the city of New York, and not more than the following numbers of signatures shall be required upon any such petition for the following public offices respectively: