A utility to count occurrences of characters (code points) in a string.