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