How many {country} are for {Transylvania} ?
What is the number of countries in Transylvania?
How many countries are in Translyvania?
SELECT ( COUNT ( ?j ) AS ?c ) { resource:Transylvania property:country ?j }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q39473> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P17> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q39473 wdt:P17 ?obj }
1