How many {product or material produced} are for {IBM} ?
Which is the number of computers for IBM?
How many computers are for IBM?
SELECT ( COUNT ( ?y ) AS ?g ) { resource:IBM property:product_or_material_produced ?y }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q37156> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1056> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q37156 wdt:P1056 ?obj }
5