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 to five.
user
the algorithm for counting to five is as follows: 
1. initialize the counter variable to 0
2. start a loop that runs five times
3. in the loop, increment the counter variable by 1
4. print out the current value of the counter variable
5. end the loop
assistant