How many {cause of death} are to/by {cricket ball} ?
How many deaths are caused by cricket ball?
Cricket ball causes how many deaths?
SELECT ( COUNT ( ?x ) AS ?q ) { ?x property:cause_of_death resource:cricket_ball }
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/P509> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q1139973 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P509 wd:Q1139973 }
5