#include<stdio.h>
#include<string.h>
int main(){
int T;
char s[51];
scanf("%d",&T);
while(T--){
int sum=0,x,i;
scanf("%s",&s);
x=strlen(s);
for(i=0;i<x;++i){
if(s[i]=='a'||s[i]=='e'||s[i]=='i'||s[i]=='o'||s[i]=='u'){
++sum;
}
}
printf("%d\n",sum);
}
return 0;
}