perl -0777E '$s{$_}++ for split//,<>; say "$_ ", $s{$_}||0 for "a".."z", "A".."Z"' your-data-file