#include<bits/stdc++.h>
#define int long long
using namespace std;
signed main()
{
string s; int n,i,d; vector<int> v;
cin>>n; n++; while (n--)
{
getline(cin,s); d=0;
for(i=0; i<s.size(); i++)
{
if (s[i]<='Z') s[i]+=32;
if (s[i]=='u'||s[i]=='e'||s[i]=='o'||s[i]=='a'||s[i]=='i') d++;
}
v.push_back(d);
}
for(i=1; i<v.size(); i++) cout<<v[i]<<" ";
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KI2RlZmluZSBpbnQgbG9uZyBsb25nCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CnNpZ25lZCBtYWluKCkKewogICAgc3RyaW5nIHM7IGludCBuLGksZDsgdmVjdG9yPGludD4gdjsKICAgIGNpbj4+bjsgbisrOyB3aGlsZSAobi0tKQogICAgewogICAgCWdldGxpbmUoY2luLHMpOyBkPTA7CiAgICAJZm9yKGk9MDsgaTxzLnNpemUoKTsgaSsrKQogICAgCXsKICAgIAkJaWYgKHNbaV08PSdaJykgc1tpXSs9MzI7CiAgICAJCWlmIChzW2ldPT0ndSd8fHNbaV09PSdlJ3x8c1tpXT09J28nfHxzW2ldPT0nYSd8fHNbaV09PSdpJykgZCsrOwoJCX0KCQl2LnB1c2hfYmFjayhkKTsKCX0KCWZvcihpPTE7IGk8di5zaXplKCk7IGkrKykgY291dDw8dltpXTw8IiAiOwoJcmV0dXJuIDA7Cn0K