How many {occupation} are for {Nancy Cartwright} ?
Nancy Cartwright has what number of occupations?
How many occupations does Nancy Cartwright have?
SELECT ( COUNT ( ?c ) AS ?t ) { resource:Nancy_Cartwright property:occupation ?c }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q229211> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P106> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q229211 wdt:P106 ?obj }
3