Answer:
def main():
word = input("Please enter the next word: ")
count = 0
while word != "DONE":
count += 1
print("#{}: You entered the word {}".format(count, word))
word = input("Please enter the next word: ")
print("A total of {} words were entered.".format(count))
main()