Refactor of counting vowels for a