How many {basin country} are for {Jordan River} ?
How many Jordan River basin countries are there?
How many basin countries are for the Jordan River?
SELECT ( COUNT ( ?v ) AS ?j ) { resource:Jordan_River property:basin_country ?v }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q40059> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P205> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q40059 wdt:P205 ?obj }
5