How many {active ingredient in} are for {acetaminophen} ?
What is in acetaminophen?
How many active ingredients are there in acetaminophen?
SELECT ( COUNT ( ?j ) AS ?e ) { resource:paracetamol property:active_ingredient_in ?j }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q57055> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P3780> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q57055 wdt:P3780 ?obj }
4