How to calculate number of vowels in a given string in Java