How many {occupant} are to/by {New York Yankees} ?
What is the number of people on the New York Yankees?
How many people are on the New York Yankees?
SELECT ( COUNT ( ?k ) AS ?o ) { ?k property:occupant resource:New_York_Yankees }
SELECT (COUNT(?sub) AS ?subs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sub .
?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> http://wikidata.dbpedia.org/resource/Q213417 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P466 wd:Q213417 }
5