Create a function that counts the number of syllables a word has. Each syllable is separated with a dash -.
NumberSyllables("buf-fet") ➞ 2
NumberSyllables("beau-ti-ful") ➞ 3
NumberSyllables("mon-u-men-tal") ➞ 4
NumberSyllables("on-o-mat-o-poe-ia") ➞ 6return the result.