I'm learning how to do functions and I get an error for line 6.
def count_letter_e(word):
total_e = 0
for letter in word:
if letter == "e":
total_letter_e = total_letter_e + 1
return total_letter_e
user_name = input("Enter your name: ")
total_es_in_name = count_letter_e(user_name)
print("There are " + str(total_es_in_name) + "E's in your name")