Add POSIX compliant sh version of the mail-count script. Additionally add comments to the bash version.