How many {material used} are for {pumpkin pie} ?
How many ingredients are used for Pumpkin Pie?
SELECT (COUNT(?obj) AS ?value ) { wd:Q2118270 wdt:P186 ?obj }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2118270> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P186> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

Which is the number of ingredients that are used for Pumpkin Pie?