#include<stdio.h>
int main(){
int t,num;
char ch[50];
scanf("%d\n",&t);
while(t--){
gets(ch);
num=0;
for(int n=0;ch[n]!='\0';n++){
if(ch[n]=='a'||ch[n]=='e'||ch[n]=='i'||ch[n]=='o'||ch[n]=='u')
num+=1;
}
printf("%d\n",num);
}
}