Write a function that counts the number of syllables in a given word by treating each group of adjacent vowels as one syllable.
Constraints
Example
```python
>>> count_syllables("hello")
2
>>> count_syllables("code")
2
>>> count_syllables("queue")
1
>>> count_syllables("beautiful")
3
>>> count_syllables("why")
0
```
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints