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