How many {position held} are for {Napoleon III} ?
Napoleon III held how many different positions?
How many positions has Napoleon III held?
SELECT ( COUNT ( ?m ) AS ?u ) { resource:Napoleon_III property:position_held ?m }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q7721> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q7721 wdt:P39 ?obj }
6