Counting string characters.