How many {country of origin} are to/by {Latvia} ?
What amount are from Latvia?
How many of them are from Latvia?
SELECT ( COUNT ( ?w ) AS ?t ) { ?w property:country_of_origin resource:Latvia }
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/P495> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q211 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P495 wd:Q211 }
433