implemented the mailbox functions (count and status)