How many {natural product of taxon} are for {wheat} ?
Wheat contains how many natural products?
How many natural products contained in wheat?
SELECT ( COUNT ( ?o ) AS ?d ) { resource:wheat property:natural_product_of_taxon ?o }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q15645384> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1582> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q15645384 wdt:P1582 ?obj }
1