How many {programming paradigm} are for {C++} ?
What's the number of programs for C++?
How many programming paradigms are there for C++?
SELECT ( COUNT ( ?a ) AS ?z ) { resource:C++ property:programming_paradigm ?a }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2407> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P3966> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q2407 wdt:P3966 ?obj }
5