Java Problems/PWSkills Assignments/Java Methods & Functions/countVowel.java
import java.util.Scanner;

public class countVowel {
    
    static int count(String str){
        int count = 0;
        for (int i = 0; i < str.length(); i++) {
            char c = str.charAt(i);
            if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u'){
                count++;
            }
        }
        return count;
    }

    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            String str = sc.next();
            
            System.out.println(count(str));
        }
    }    
}
