for $c in doc('people2.xml')//country return {$c/text()}{count(//car[country=$c])}