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