How many {replaces} are for {Yilan County} ?
What number is replaced by Yilan County?
Yilan County replaces how many ?
SELECT ( COUNT ( ?z ) AS ?o ) { resource:Yilan_County property:replaces ?z }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q237258> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1365> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q237258 wdt:P1365 ?obj }
3