#buscalinearregular

N = int(input())
vetor = list()

for a in range(N):
	S = input()
	c = 0
	for l in S:
		if l in "aeiouAEIOU":
			c = c + 1
	vetor.append(c)
	#print(c)

for x in vetor:
	print(x)
2f039b0b9a588356717e5310e32a8d5c0f88111c
<mask token>

<mask token>
for a in range(N):
    S = input()
    c = 0
    for l in S:
        if l in 'aeiouAEIOU':
            c = c + 1
    vetor.append(c)
for x in vetor:
    print(x)

N = int(input())
vetor = list()
for a in range(N):
    S = input()
    c = 0
    for l in S:
        if l in 'aeiouAEIOU':
            c = c + 1
    vetor.append(c)
for x in vetor:
    print(x)

#buscalinearregular

N = int(input())
vetor = list()

for a in range(N):
	S = input()
	c = 0
	for l in S:
		if l in "aeiouAEIOU":
			c = c + 1
	vetor.append(c)
	#print(c)

for x in vetor:
	print(x)