Say I have a list of countries
l = ['India', 'China', 'China', 'Japan', 'USA', 'India', 'USA']
and then I have a list of unique countries
ul = ['India', 'China', 'Japan', 'USA']
I want to have a count of each unique country in the list in ascending order. So output should be as follows:
Japan 1
China 2
India 2
USA 2