e. the program should then output the list of characters, including white spaces and punctuation marks, and the number of times each character appears in the input.