#---------------------------------------------------------
#
# Vowel counter
#
# Define a function with one parameter, a string,
# which returns the number of vowels the string contains
# (including duplicates).
#
# Recall that the vowels in english are a, e, i, o and u.
#

#---------------------------------------------------------
# These are the tests your function must pass.
#
""" 
>>> vowel_count('abc') # Test 1
1

>>> vowel_count('My very elegant mother just sat upon nine porcupines') # Test 2
16

>>> vowel_count('The quick brown fox jumps over the lazy dog') # Test 3
11

>>> vowel_count('aeiou') # Test 4
5

>>> vowel_count('') # Test 5
0

>>> vowel_count('xyzzy') # Test 6
0

>>> vowel_count('abc') == 1 # Test 7 (confirm value returned, not printed)
True

"""


#---------------------------------------------------------
#
# Suggested solution strategy:
#
# 1. Initialise a new integer variable to keep count
# 2. For every character in the given string:
#    a. If the character is a vowel:
#         i. Increment the counter 
# 3. Return the counter
#

##### DEVELOP YOUR vowel_count FUNCTION HERE



#---------------------------------------------------------
# This main program executes the tests above when this
# file is run.
#
from doctest import testmod, REPORT_ONLY_FIRST_FAILURE
print testmod(verbose = False,
              optionflags = REPORT_ONLY_FIRST_FAILURE)


