#include<stdio.h>
#include<string.h>
int main(){
int T,l,i,m;
scanf("%d",&T);
while(T--){
char str[50];
m=0;
scanf("%s",str);
l=strlen(str);
for(i=0;i<l;i++){
if(str[i]==97||str[i]==101||str[i]==105||str[i]==111||str[i]==117)
m=m+1;
}
printf("%d\n",m);
}
return 0;
}