How many {destroyed} are to/by {building} ?
What number of buildings are to be annihilated?
how many buildings are to be destroyed?
SELECT ( COUNT ( ?l ) AS ?t ) { ?l property:destroyed resource:building }
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/P3082> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q41176 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P3082 wd:Q41176 }
23