How many {motto} are to/by {Latin} ?
Latin has how many mottos?
How many motto's are for the {Latin} ?
SELECT ( COUNT ( ?g ) AS ?l ) { ?g property:motto resource:Latin }
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/P1546> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q397 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P1546 wd:Q397 }
5