How many {drug used for treatment} are for {anemia} ?
Did u listed number of drugs used to treat anemia?
How many drugs are used to treat anemia?
SELECT ( COUNT ( ?p ) AS ?r ) { resource:anemia property:drug_used_for_treatment ?p }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q5445> .
?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> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q5445 wdt:P2176 ?obj }
12