CountCharacters working as intended