How many {medical condition} are for {Ludwig van Beethoven} ?
How many health defects did Ludwig van Beethoven have?
How many medical conditions did Ludwig van Beethoven have?
SELECT ( COUNT ( ?p ) AS ?e ) { resource:Ludwig_van_Beethoven property:medical_condition ?p }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q255> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1050> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q255 wdt:P1050 ?obj }
12