How many {parent peak} are to/by {Ben Nevis} ?
What is the number of parent peaks that Ben Nevis has?
How many parent peaks does Ben Nevis have?
SELECT ( COUNT ( ?m ) AS ?o ) { ?m property:parent_peak resource:Ben_Nevis }
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/P3137> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q104674 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P3137 wd:Q104674 }
12