Process all characters in a file and make a list that counts occurrences of each character