A cop assigned to the Upper West Side is claiming he suffered retaliation for not writing enough summonses and doing too few stop-and-frisks under a quota system the NYPD insists doesn’t exist.

Officer Rajinder Singh reported he was yanked from his regular patrol duties, assigned to lone foot posts in other commands, and ordered to “transport a hostile prisoner without leg restraints,” all because he cop came up short.

With the PBA on his side, Singh has filed a grievance against the NYPD that the Board of Collective Bargaining on Dec. 20 ruled is subject to arbitration, overriding objections from the city.

Critics said Singh’s story proves cops are fed up with quotas.

“Commanders and cops throughout the department are under enormous pressure to make numbers and meet quotas, and we can expect more and more of them to come forward with complaints and even lawsuits,” said Chris Dunn of the New York Civil Liberties Union.

Singh, who works out of the 20th Precinct at 120 W. 82nd St., said his troubles began when Platoon Commander Steven Chantel informed him and his partner on Jan. 11, 2011, they’d no longer be working together “because they did not have a sufficient number of C-summonses and UF-250s on their December 2010 monthly activity reports.” C-summonses are for quality-of-life offenses, while UF-250s are produced after stop-and-frisks.

When the PBA intervened, Chantel initially backed off. The following day, however, Singh’s schedule was switched and he was given undesirable assignments, the union alleges.

The PBA also asserts Singh, a 7 1/2-year vet. was subjected to “an openly hostile attitude” from Lt. Heriberto Bermudez.

NYPD spokesman Paul Browne said the board’s decision “was on the very narrow issue of whether a police officer who consults with a union delegate has engaged in ‘union activity,’ ” which is protected by the PBA contract.