How many {numeric value} are for {pi} ?
What is the number of values for PI?
How many {numeric values} are there for {pi}?
SELECT ( COUNT ( ?l ) AS ?h ) { resource:Pi property:numeric_value ?l }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q167> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1181> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q167 wdt:P1181 ?obj }
1