How many {work location} are for {Hans Hofmann} ?
In what locations has Hans Hofmann worked?
How many work locations are for Hans Hofmann?
SELECT ( COUNT ( ?b ) AS ?f ) { resource:Hans_Hofmann property:work_location ?b }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q215461> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P937> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q215461 wdt:P937 ?obj }
4