Here's what I do to check the number of mail messages:
mail -n -H 2> /dev/null | awk '/:.*message.*/ { print $2 }'
-- dtm
Received on Fri Jan 12 2007 - 20:48:44 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:34:41 UTC