added a count query such like Select country, count(country) from... to the repository. It is easier than I thought :)