How many {located on astronomical body} are to/by {Phobos} ?
How many location does astronomical bodies in  {Phobos} ?
SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P376 wd:Q7547 }
SELECT (COUNT(?sub) AS ?subs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sub .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P376> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q7547 .
} 

Which is the number of the locations that the astronomical bodies in Phobos have?