Count the vowels in a string

Given a string write a function that counts the vowels in the string.
The function should return an integer of the vowel count.
Display a message indicating the result of the function.

Note: For the purposes of this challenge a vowel is (a e i o u).

Examples

  • "Hello" = 2 vowels (e,o)
  • monkey = 2 vowels (o,e) we are ignoring y for this challenge
  • William Shakespeare = 8 vowels (i,a,e,) we are counting duplciates.

Extra Credit: Have your function return the vowel count AND the vowels found.

Result Goes Here


My Solution