#include<iostream>
#include<cmath>
#include<set>
#include<map>
#include<algorithm>
#include<queue>
#include<cstring>
#include<string>
#include<vector>
#include<cstdio>
#define INF 0x3f3f3f3f
using namespace std;
char c[100];
int main(){
int n;
scanf("%d",&n);
while(n--){
getchar();
scanf("%s",&c);
int count=0;
for(int i=0;i<strlen(c);i++){
if(c[i]=='a'||c[i]=='e'||c[i]=='i'||c[i]=='o'||c[i]=='u')
count++;
}
printf("%d\n",count);
}
}