How many {military rank} are for {Alexander Suvorov} ?
Alex Suvorov has how many military ranks?
How many military ranks are for Alexander Suvorov?
SELECT ( COUNT ( ?d ) AS ?j ) { resource:Alexander_Suvorov property:military_rank ?d }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q154232> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P410> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q154232 wdt:P410 ?obj }
1