count_chars — Return information about characters used in a string