updated to count the countries