as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
generate an algorithm for counting the number of different languages spoken within a country.
user
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.
assistant