How many {captain} are for {Montreal Canadiens} ?
How many captains do Montreal Canadiens have?
How many captains are there for the Montreal Canadiens?
SELECT ( COUNT ( ?b ) AS ?a ) { resource:Montreal_Canadiens property:captain ?b }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q188143> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P634> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q188143 wdt:P634 ?obj }
6