How many {killed by} are to/by {James Bond} ?
James Bond kills how many people?
How many are killed by James Bond?
SELECT ( COUNT ( ?z ) AS ?c ) { ?z property:killed_by resource:James_Bond }
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/P157> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q2009573 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P157 wd:Q2009573 }
7