class HaikuReview {

    public int countSyllables(String input) {
        int count = 0;
        Pattern pattern = Pattern.compile("[aeouiy]+");
        Matcher matcher = pattern.matcher(input);
        while (matcher.find()) {
            count++;
        }
        return count;
    }

}