Add function count_char_eachfile which returns character statistics for each file and writes it to a given file