How many {residence} are for {Mikhail Bulgakov} ?
What is the number of residences for Mikhail Bulgakov?
How many residences are there for Mikhail Bulgakov?
SELECT ( COUNT ( ?k ) AS ?f ) { resource:Mikhail_Bulgakov property:residence ?k }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q835> .
?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:Q835 wdt:P551 ?obj }
5