Count vowels

Return the number (count) of vowels in the given string.

We will consider a, e, i, o, and u as vowels for this Kata.

Solutions

💲 Shell

echo $(s=${1,,};r=${s//[^aeiou]/};echo ${#r})

Last updated