in reply to ASCII file

perl -MDevel::Dwarn -MList::UtilsBy=count_by \ -e 'Dwarn({ count_by { $_ } map split("", $_), <> });'