How many {shares border with} are for {San Juan Province} ?
What number shares border with San Juan Province?
How many shares border with the San Juan Province?
SELECT ( COUNT ( ?w ) AS ?s ) { resource:San_Juan_Province property:shares_border_with ?w }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q44805> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P47> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q44805 wdt:P47 ?obj }
6