I have an array of country names and I want to create 2 dimensional array of the names and there count. The array i have is,
names = [Afghanistan,Alaska,Alaska,Alaska,Alaska,Alaska,Argentina,Argentina,British Virgin Islands,British Virgin Islands]
So i want the count of each country in 2 dimensional array. for example i need something like this
country['Afghanistan, 1]
country['Alaska, 5]
country['Argentina, 2]
and so on.
Could someone please help. Thanks