How many {replaced by} are to/by {Canadian dollar} ?
The Canadian dollar replaces how much?
How much is to be replaced by the Canadian dollar?
SELECT ( COUNT ( ?u ) AS ?g ) { ?u property:replaced_by resource:Canadian_dollar }
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/Q1104069 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P1366 wd:Q1104069 }
7