How many {replaced by} are to/by {Fatimid caliphate} ?
How many will the Fatimid caliphate replace?
How many will be replaced by the Fatimid caliphate?
SELECT ( COUNT ( ?s ) AS ?p ) { ?s property:replaced_by resource:Fatimid_caliphate }
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/P1366> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q160307 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P1366 wd:Q160307 }
4