#include <iostream>
#include <string>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <cstdio>
#include <functional>
#include <fstream>
using namespace std;
const int maxn=1e5+10;
const int inf=0x3f3f3f3f;
typedef long long LL;
int t,ans;
char str[1010];
int main()
{
scanf("%d",&t);
while(t--){
scanf("%s",str);
ans=0;
int len=strlen(str);;
for(int i=0;i<len;++i)
if(str[i]=='a'||str[i]=='e'||str[i]=='i'||str[i]=='o'||str[i]=='u')
++ans;
printf("%d\n",ans);
}
}