How many {manner of death} are to/by {lynching} ?
What is the number of people that died by lynching?
How many people have died by lynching?
SELECT ( COUNT ( ?w ) AS ?v ) { ?w property:manner_of_death resource:lynching }
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/P1196> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q486775 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P1196 wd:Q486775 }
10