#include <stdio.h>
#include <string.h>
#include <math.h>
int main(){
char str[]={"aeiou"},words[55];
int t,i,j,dig=0;
scanf("%d",&t);
getchar();
while(t--)
{
scanf("%s",words);
for(i=0;i<strlen(words);++i)
{
for(j=0;j<5;++j)
{
if(words[i]==str[j])
{
dig++;
}
}
}
printf("%d\n",dig);
dig=0;
}
}