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
write an algorithm that can identify and count the number of vowels in a given word.
user
the algorithm could be written as follows:
1. set a counter to 0
2. iterate through all the characters in the given word
3. if the character is a vowel (a,e,i,o,u), increment the counter by 1
4. return the counter
assistant