How many {occupant} are for {Windsor Castle} ?
What is the number of people who occupy Windsor Castle?
How many people occupy Windsor Castle?
SELECT ( COUNT ( ?t ) AS ?b ) { resource:Windsor_Castle property:occupant ?t }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q42646> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P466> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q42646 wdt:P466 ?obj }
18