#vowel detector

print("Welcome to the Vowel Detector")
msg = input("type a phrase: ")
#msg = "The quick brown fox jumps over the lazy dog."

#initialize counters
counters = {'a':0, 'e':0, 'i':0, 'o':0, 'u':0}

for ch in msg:
    if(ch == 'a' or ch == 'A'):
        print("vowel detected: 'a'")
        counters['a'] += 1
    elif(ch == 'e' or ch == 'E'):
        print("vowel detected: 'e'")
        counters['e'] += 1
    elif(ch == 'i' or ch == 'I'):
        print("vowel detected: 'i'")
        counters['i'] += 1
    elif(ch == 'o' or ch == 'O'):
        print("vowel detected: 'o'")
        counters['o'] += 1
    elif(ch == 'u' or ch == 'U'):
        print("vowel detected: 'u'")
        counters['u'] += 1

#DEBUG print(counters)
print("There are:\n")
print(counters['a'], "A's.")
print(counters['e'], "E's.")
print(counters['i'], "I's.")
print(counters['o'], "O's.")
print(counters['u'], "U's.")
print("\nThank you for playing.")
