How many {Commons category} are for {artichoke} ?
What are the common types of artichokes?
How many common categories are there in the {artichoke} ?
SELECT ( COUNT ( ?d ) AS ?b ) { resource:globe_artichoke property:Commons_category ?d }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q23041430> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P373> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q23041430 wdt:P373 ?obj }
1