input = """Shabigray
Ashlomo
Graysharom
Phammojun
Junmopham
Bithurjun
Hexpatash
Hexashjun
Prakchulo
Patashbi
Ashgraypat
Biromthur
Phammogray
Bihexpham
Romgraybi
Sharompat
Hexthurbi
Thurpatkee
Praklopat
Thurchubi
Thurjunhex
Thurphamjun
Ashthursha
Shabipham
Mothurkee
Shaprakjun
Prakbiash
Phampatjun
Mobilo
Graybimo
Bishaprak
Rombikee
Lophamprak
Mohexkee
Romthurash
Grayphamchu
Hexashbi
Keeashjun
Shahexmo
Grayjunbi
Prakshapham
Hexkeepat
Keejunpat
Grayhexrom
Chugraykee
Patthurhex
Keebilo
Loprakmo
Keeashchu
Junchupat
Lojungray
Grayprakrom
Lopatbi
Churommo
Hexbichu
Lochujun
Patjunpham
Prakbirom
Prakthurash
Chupatsha
Patrompham
Ashchugray
Chuprakkee
Graythurpham
Chuhexmo
Thurhexmo
Thurashbi
Mothurrom
Graychuhex
Bichujun
Ashhexsha
Keethurprak
Grayshaprak
Shapathex
Romshajun
Hexashrom
Chulopham
Chuthurprak
Chulorom
Phamshaash
Shathurpat
Rombiprak
Mopatgray
Romchumo
Chuthurbi
Keehexchu
Mochuprak
Hexmogray
Junlopham
Mothurbi
Keepraksha
Biphamkee
Loprakash
Grayashpham
Prakphamsha
Bijunhex
Moshachu
Loshaash
Patjunchu
Bipatash
Junshaprak
Ashkeepat
Hexshagray
Thurlomo
Bipatsha
Thurbichu
Sharombi
Phamgraysha
Shathurbi
Thurromchu
Phamshagray
Hexshachu
Lopatpham
Jungrayash
Junthurhex
Patlohex
Chupatkee
Junkeepham
Praklopham
Hexthurpat
Prakhexlo
Moprakchu
Keethurrom
Graythurash
Keegrayhex
Patthurgray
Prakkeepat
Sharomkee
Chupatlo
Junbigray
Churomkee
Hexromkee
Rompraksha
Patkeebi
Thurphamkee
Romashhex
Lohexpham
Lomobi
Phamlochu
Hexphamchu
Lothurprak
Junpraklo
Phamlomo
Prakgraybi
Grayjunkee
Moprakpat
Shajunbi
Romchugray
Romchuhex
Keepatgray
Chuashsha
Hexphamrom
Phamgrayhex
Romshabi
Keejunhex
Junshalo
Junshachu
Thurashprak
Biprakjun
Praklokee
Shathurmo
Chugrayjun
Chuhexgray
Shapatchu
Chuhexrom
Keethurchu
Hexkeepham
Hexromprak
Patprakash
Prakjunlo
Keehexmo
Shachugray
Keethurpham
Junlomo
Mophamash
Junbisha
Bichupat
Lopatkee
Hexlokee
Bigraymo
Rompatmo
Junpatthur
Phamchusha
Mograypham
Hexkeelo
Lochubi
Keerombi
Patgraybi
Thurhexsha
Phamashprak
Hexashchu
Bithurkee
Keeromprak
Hexphambi
Graymokee
Shachujun
Junbichu
Bishapham
Patromprak
Ashjunmo
Hexbilo
Mochupat
Ashshakee
Prakphamgray
Lophampat
Phamthurmo
Chubimo
Keejunmo
Keegraypat
Hexprakmo
Thurlopat
Prakchuhex
Bikeehex
Patmolo
Bilomo
Chupraksha
Lothurash
Romshahex
Chuphamkee
Bithurlo
Junchuprak
Bichurom
Thurpraksha
Keepatbi
Patchukee
Thurphamprak
Romjunchu
Junhexgray
Jungraykee
Graylohex
Mokeebi
Moashprak
Thurshachu
Thurjungray
Patgraylo
Hexchupat
Keepathex
Loromhex
Biashpat
Romprakpham
Lomogray
Shapatjun
Ashshabi
Lophamrom
Shachulo
Hexmochu
Rompatgray
Shajunhex
Phampatchu
Ashrompham
Hexrompat
Thurrommo
Romshachu
Chuashmo
Hexchuash
Patkeesha
Keebichu
Chukeepat
Hexprakrom
Shapatpham
Graychurom
Prakchuthur
Junashsha
Keemohex
Moromchu
Phamkeerom
Hexkeethur
Keemogray
Chupathex
Keethurgray
Graykeepat
Hexloash
Keepatchu
Mobikee
Romchuash
Graythurrom
Prakphamchu
Mohexpat
Prakshalo
Chuphamthur
Phamkeeprak
Ashjunprak
Junprakbi
Shabirom
Phamthurlo
Pathexkee
Molobi
Loashmo
Ashjunrom
Thurgrayjun
Shaphamgray
Graypatchu
Romlochu
Graymojun
Graychuprak
Shagraypat
Hexsharom
Biromash
Biprakmo
Chubikee
Bichumo
Ashphamchu
Shakeethur
Chugraymo
Patgrayprak
Ashshachu
Moashthur
Patjunbi
Shaashpham
Bimochu
Prakphamkee
Prakbikee
Prakgraysha
Bilopat
Sharomash
Junrommo
Patromash
Prakthurjun
Phamthurprak
Bikeelo
Ashthurlo
Grayshaash
Biprakrom
Bichugray
Bihexchu
Hexkeemo
Junmochu
Hexprakpham
Hexbigray
Keepraklo
Prakjunhex
Birompat
Ashpatthur
Shahexrom
Shaprakrom
Patthurchu
Phamkeemo
Hexpatpham
Ashprakjun
Chushakee
Phamprakthur
Mobijun
Keeshapham
Junpatbi
Shahexpham
Junashrom
Prakmopham
Mopatrom
Phambijun
Ashpatbi
Keehexash
Ashkeethur
Ashrompat
Hexlochu
Prakthurkee
Grayromsha
Thurkeemo
Phamhexrom
Shahexchu
Romhexkee
Bihexmo
Graybihex
Loprakhex
Lochusha
Junpatpham
Shabichu
Shaphamthur
Hexchugray
Chugraylo
Thurhexpat
Molojun
Keeromthur
Phamashkee
Junphampat
Shaashlo
Romprakthur
Graykeejun
Mopraksha
Phambihex
Graypatsha
Phamthurpat
Phammochu
Prakjunash
Junkeerom
Hexlorom
Shaashkee
Graypatash
Shahexash
Prakpatmo
Moashrom
Hexkeesha
Romlopham
Chuashpham
Thurmoprak
Grayprakjun
Hexgraymo
Patphambi
Bipathex
Patbisha
Hexashpat
Lograyash
Thurbimo
Grayjunprak
Ashgrayjun
Lochumo
Grayashkee
Mojunlo
Graychuthur
Romkeepat
Patpraksha
Grayphamprak
Hexgrayjun
Bimolo
Prakpatpham
Patchuthur
Lophamchu
Bijunsha
Biromlo
Rombithur
Lothurpat
Ashthurpham
Graychulo
Loashpham
Mohexsha
Ashpatlo
Chulokee
Romkeeash
Hexkeejun
Lochurom
Prakrombi
Mophambi
Mochuash
Lobipham
Shajungray
Hexgraypham
Ashkeerom
Loshahex
Grayjunash
Shakeemo
Rombipham
Prakjunmo
Loprakpat
Lomopat
Hexshapham
Bipatrom
Prakpatash
Biashprak
Hexashprak
Thurashrom
Graykeeash
Junbihex
Chuphamsha
Prakchugray
Chuloprak
Prakjungray
Phammothur
Biphamash
Romjunash
Mojungray
Thurshamo
Prakchupat
Graykeethur
Ashphamprak
Hexromthur
Chukeemo
Romhexprak
Praksharom
Graypraksha
Prakshapat
Rompatkee
Rombiash
Prakgraypat
Graybijun
Chuashpat
Moromjun
Phampathex
Grayhexprak
Thurkeepham
Thurkeegray
Grayshathur
Moashgray
Mopatlo
Ashjunkee
Prakromjun
Keejunlo
Prakashchu
Romchujun
Prakgraypham
Junchusha
Chuhexprak
Phamprakmo
Bijunkee
Bihexsha
Phamashrom
Chuhexkee
Mograysha
Patjunkee
Phambithur
Phammokee
Graythurhex"""

import re

res = 0
ewoks = input.splitlines()
for ewok in ewoks:
    temp = re.sub("[aeiouyAEIOUY]", "_", ewok)
    voy = temp.count("_")
    cons = len(temp) - voy
    print(ewok, voy, cons)
    if cons == voy*2:
        res = res + 1
print(res)