>>495
public class Q495 {
public static void main(String[] args) {
String str = "あめんぼあかいなあいうえお";
int num = 0;
for (int i=0; i<str.length(); i++) {
if (str.charAt(i) == 'あ') num++;
}
System.out.println(num);
}
}