How many {significant event} are for {John Paul II} ?
John Paul II was involved with what number of significant events?
How many significant events involved John Paul II?
SELECT ( COUNT ( ?y ) AS ?k ) { resource:John_Paul_II property:significant_event ?y }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q989> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P793> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q989 wdt:P793 ?obj }
7