How many {based on} are to/by {Latin script} ?
Latin script  has how many languages that are based on it?
How many languages are based on the {Latin script} ?
SELECT ( COUNT ( ?p ) AS ?z ) { ?p property:based_on resource:Latin_script }
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/P144> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q8229 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P144 wd:Q8229 }
20