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