How many {penalty} are to/by {death} ?
Death comes from how many penalties?
How many penalties result in death?
SELECT ( COUNT ( ?a ) AS ?r ) { ?a property:penalty resource:death }
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/P1596> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q4 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P1596 wd:Q4 }
6