#include<bits/stdc++.h>
#define rep(i,x,y) for(int i=x;i<=y;++i)
#define dep(i,x,y) for(int i=y;i>=x;--i)
using namespace std;
typedef long long ll;
//struct node{
// int
//}p[];
//bool cmp(node a,node b)
//{
// return ;
//}
int n,m,k,q,a[301010];
char s[101010];
int main()
{
int t,an,l;
scanf("%d",&t);
while(t--)
{
scanf("%s",s);
an=0;
l=strlen(s);
rep(i,0,l-1)
if(s[i]=='a'||s[i]=='e'||s[i]=='i'||s[i]=='o'||s[i]=='u') an++;
printf("%d\n",an);
}
}