How many {spore print color} are to/by {olive} ?
What is the number of spore print colors for olive?
How many spore print colors are there for the {olive} ?
SELECT ( COUNT ( ?e ) AS ?c ) { ?e property:spore_print_color resource:olive }
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/P787> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q864152 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P787 wd:Q864152 }
32