#include<cstring>
#include<string>
#include<algorithm>
#include<iostream>
#include<cmath>
#include<cstdlib>
#include<queue>
using namespace std;
const int maxn=1e5+9;
const int inf=0x3f3f3f3f;
typedef long long ll;
int main(){
int n;
scanf("%d",&n);
while(n--){
getchar();
char str[55];
int t=0;
scanf("%s",str);
for(int i=0;i<strlen(str);i++){
if(str[i]=='a'||str[i]=='e'||str[i]=='i'||str[i]=='o'||str[i]=='u'){
t++;
}
}
printf("%d\n",t);
}
return 0;
}