How many {place of burial} are to/by {Egypt} ?
Egypt has how many burial places?
How many burial places are in Egypt?
SELECT ( COUNT ( ?x ) AS ?j ) { ?x property:place_of_burial resource:Egypt }
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/P119> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q79 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P119 wd:Q79 }
23