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