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