How do i count all the characters in a string?