How many {director of photography} are for {Olympia} ?
Which is the number of the photographers that are in Olympia?
How many photographers are in Olympia?
SELECT ( COUNT ( ?y ) AS ?b ) { resource:Olympia property:director_of_photography ?y }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q158069> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P344> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q158069 wdt:P344 ?obj }
23