user
Task: Generate an algorithm for counting the number of different languages spoken within a country.


assistant
1. Create a list of the countries with their spoken languages.
2. Initialize a counter to 0.
3. For each country, count the number of spoken languages and added to the initialized counter. 
4. Continue for every country in the list. 
5. When all countries have been processed, print out the final counter.