in reply to Re^2: Count # of occurrences per column
in thread Count # of occurrences per column

True, but ... from OP:

The output does not need to be as specific as I have put, as long as it gives the column number and how many occurrences of each character.

I prefer to simply demonstrate general concepts and not distract with needless or potentially implied minutia. Obviously it's easy enough for the OP to add 2 to the column if that's what he desires, along with adding sorting or pretty printing.

*Shrug* Good thing I'm not a perfectionist ;)

  • Comment on Re^3: Count # of occurrences per column