How many {office contested} are to/by {pope} ?
Which is the number of times that the pope office is contested?
How many times is the pope office contested?
SELECT ( COUNT ( ?s ) AS ?z ) { ?s property:office_contested resource:pope }
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/P541> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q19546 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P541 wd:Q19546 }
114