#include <stdio.h>
#include<string.h>
#define ARRAY 100
int main()
{
long int n;
scanf("%d",&n);
getchar();
while(n--)
{
int sum=0;
char word[ARRAY];
gets(word);
if(strlen(word)==0)
{
n++;
continue;
}
for(int i=0;i<strlen(word);i++)
if(word[i]=='a'||word[i]=='e'||word[i]=='i'||word[i]=='o'||word[i]=='u')
sum++;
printf("%d\n",sum);
}
return 0;
}