How many {military rank} are for {Philippe Pétain} ?
What was Philippe Petain's rank?
What military rank is Philippe Pétain?
SELECT ( COUNT ( ?r ) AS ?v ) { resource:Philippe_Pétain property:military_rank ?r }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q5721> .
?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:Q5721 wdt:P410 ?obj }
9