How many {licence plate code} are for {Moscow} ?
Give me the number of license plate numbers that Moscow has.
How many licence plate code does Moscow has?
SELECT ( COUNT ( ?p ) AS ?q ) { resource:Moscow property:licence_plate_code ?p }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q649> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P395> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q649 wdt:P395 ?obj }
8