How many {exclave of} are to/by {Azerbaijan} ?
How many exclaves does Azerbaijan have?
How many numbers of exclave for the  {Azerbaijan} ?
SELECT ( COUNT ( ?y ) AS ?j ) { ?y property:exclave_of resource:Azerbaijan }
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/P500> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q227 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P500 wd:Q227 }
5