How many {brand} are for {Procter & Gamble} ?
How many brands does Procter & Gamble own?
How many brands are there for Procter & Gamble?
SELECT ( COUNT ( ?s ) AS ?o ) { resource:Procter_&_Gamble property:brand ?s }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q212405> .
?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> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q212405 wdt:P1716 ?obj }
4