#include<iostream>
#include<algorithm>
#include<cmath>
#include<string>
#include<set>
#include<map>
#include<cstring>
using namespace std;
const int maxn=1e5+100;
const int inf=0x3f3f3f3f;
struct rule{
bool operator()(const int &a1,const int &a2){
return a1>a2;
}
};
int main(){
int t;
scanf("%d",&t);
getchar();
while(t--){
char s[100];
scanf("%s",s);
int tot=0;
for(int i=0;i<strlen(s);i++){
if(s[i]=='a'||s[i]=='e'||s[i]=='i'||s[i]=='o'||s[i]=='u') tot++;
}
printf("%d\n",tot);
}
}