How many {anthem} are to/by {God Save the Queen} ?
What is the number of anthem that are by God Save the Queen?
How many anthems are by God Save the Queen?
SELECT ( COUNT ( ?x ) AS ?s ) { ?x property:anthem resource:God_Save_the_Queen }
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/P85> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q40807 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P85 wd:Q40807 }
76