How many {residence} are for {Thomas Kuhn} ?
Thoma Kuhn has how many homes?
How many homes does Thomas Kuhn have?
SELECT ( COUNT ( ?a ) AS ?w ) { resource:Thomas_Kuhn property:residence ?a }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q184980> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P551> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q184980 wdt:P551 ?obj }
4