How many {located on terrain feature} are to/by {Western Asia} ?
In Western Asia, how many terrain features are there?
How many terrain features are located in {Western Asia} ?
SELECT ( COUNT ( ?n ) AS ?r ) { ?n property:located_on_terrain_feature resource:Western_Asia }
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/P706> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q27293 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P706 wd:Q27293 }
3