Count Syllables



Problem to find the number of syllables in given string.



Example-1:


Input    : s = "Array-Graph-Tree-Searching"
Output   : 4  


Example-2:


Input    : s = "set-tuple-list-string-dictionary"
Output   : 5  







Solution




s = "Array-Graph-Tree-Searching"

a = s.count("-") + 1

print(a)



Output



4