Added exception handling to CountVowels.java