How many {consecrator} are to/by {John Paul II} ?
John Paul II has named how many consecrators?
How many consecrators are named by John Paul II?
SELECT ( COUNT ( ?s ) AS ?z ) { ?s property:consecrator resource:John_Paul_II }
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/P1598> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q989 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P1598 wd:Q989 }
334