> For the complete documentation index, see [llms.txt](https://anton-veselskyi.gitbook.io/codding-problems-solutions/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://anton-veselskyi.gitbook.io/codding-problems-solutions/codewars/beta/count-vowels.md).

# Count vowels

## [Count vowels](https://www.codewars.com/kata/589e281035999ca36a0001ff)

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})
```
