How many {industry} are for {Bayer AG} ?
What is the number of industries Bayer AG operates?
How many industries does Bayer AG operate in?
SELECT ( COUNT ( ?l ) AS ?y ) { resource:Bayer property:industry ?l }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q152051> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P452> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q152051 wdt:P452 ?obj }
4