How many {continent} are for {Portuguese Empire} ?
How many continents does the Portuguese Empire possess?
How many continents are in the Portuguese Empire?
SELECT ( COUNT ( ?a ) AS ?k ) { resource:Portuguese_Empire property:continent ?a }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q200464> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P30> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q200464 wdt:P30 ?obj }
5