#include<cstdio>
#include<iostream>
#include<vector>
#include<queue>
#include<map>
#include<cstdlib>
#include<cstring>
#include<string>
#include<cmath>
#include<algorithm>
using namespace std;
//priority_queue<int>q;
char ch[100];
int main (void){
int t;
scanf("%d",&t);
while(t--){
scanf("%s",ch);
int tot=0;
for(int i=0;i<strlen(ch);i++){
if(ch[i]=='a'||ch[i]=='e'||ch[i]=='o'||ch[i]=='i'||ch[i]=='u'){
tot++;
}
}
printf("%d\n",tot);
}
return 0;
}