How many {direction relative to location} are to/by {west} ?
How far to the west are we located?
How far west are we?
SELECT ( COUNT ( ?c ) AS ?o ) { ?c property:direction_relative_to_location resource:west }
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/P654> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q679 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P654 wd:Q679 }
3