How many {postal code} are for {New York City} ?
What is the number of postal codes for New York City
How many postal code for New York City?
SELECT ( COUNT ( ?p ) AS ?n ) { resource:New_York_City property:postal_code ?p }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q60> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P281> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q60 wdt:P281 ?obj }
4