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