#include<stdio.h>
#include<string.h>
int main () {
int T;
for(scanf("%d",&T);T>0;T--) {
char shu[10000];
int p=0 ;
int iCount=0;
scanf ("%s",&shu);
for (;p<strlen(shu);p++) {
if (shu[p]=='a') {
iCount++;
}
if (shu[p]=='e') {
iCount++;
}
if (shu[p]=='i') {
iCount++;
}
if (shu[p]=='o') {
iCount++;
}
if (shu[p]=='u') {
iCount++;
}
}
printf("%d\n",iCount);
iCount=0;
}
}