How many {drug used for treatment} are to/by {ibuprofen} ?
what are the drugs used for the {ibuprofen} ?
SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P2176 wd:Q186969 }
SELECT (COUNT(?sub) AS ?subs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sub .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P2176> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q186969 .
} 

What are they types of drugs used for the makeup of ibuprofen?