What is a Syllable ?
Easy Accuracy: 15.15% Submissions: 165 Points: 2

Given a text. The task is to count number of syllables in text.

Definition of a syllable :-  A contiguous sequence of vowels, except for an "e" at the end of a word if the word has another set of contiguous vowels, makes up one syllable. y is considered a vowel. For example, the word water is composed of two syllables: wa and ter.

Input: 
The first line contains a single integer T denoting the number of test cases. Then T test cases follow. Each test case consists of a single line which contains a text.

Output:
Corresponding to each test case, print  number of syllables.

Constraints:
1 <=T<= 10
1 <=  |text| <= 250

where |text| denoted the length of text

Example:
Input:
3
many Syyyyyyyyyyyylableeeeeses are
syllable
segue

Output:
7
2
2

to report an issue on this page.

Editorial

We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?

Yes

All Submissions

My Submissions:

Login to access your submissions.