improve syllable counting logic