How many {diplomatic relation} are to/by {Burkina Faso} ?
How many countries have diplomatic relations with Burkina Faso?
SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P530 wd:Q965 }
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/P530> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q965 .
} 

Who has diplomatic relations with Burkina Faso?