# create a counter variable to
# to count loop iterations
counter = 0
# begin a REPL
while True:
# count the current iteration
counter += 1
# ask the user if they want the run the loop again?
again = input('Again? yes/no: ')
# if the user enters 'no'
if again == 'no':
# tell the user how many times the loop ran
print(f'The loop ran {counter} times.')
# end the loop
break