Counts the number of syllables in a string