How many {brand} are to/by {Coca-Cola} ?
There are how many brands of Coca-Cola?
How many brands does Coca-Cola have?
SELECT ( COUNT ( ?e ) AS ?i ) { ?e property:brand resource:Coca-Cola }
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/P1716> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q2813 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P1716 wd:Q2813 }
16