#include<stdio.h>
int main()
{
int t,i,s;
char word[51];
scanf("%d",&t);
while(t--)
{
s=0;
scanf("%s",word);
i=0;
while(word[i]!='\0')
{
if(word[i]=='a'||word[i]=='e'||word[i]=='i'||word[i]=='o'||word[i]=='u')
s++;
i++;
}
printf("%d\n",s);
}
return 0;
}