#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define long 51
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[])
{
int t,l,s,i;
char str[long];
scanf("%d",&t);
while(t--)
{
scanf("%s",str);
l=strlen(str);
s=0;
for(i=0;i<l;i++)
{
if(str[i]=='a'||str[i]=='e'||str[i]=='i'||str[i]=='o'||str[i]=='u')
s=s+1;
}
printf("%d\n",s);
}
return 0;
}