Fix mailcount.sh return errorcode when count results in an error

I've been trying to fix my gmail problems recently when I found this little bug :)