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