Adding function to return the count of messages in the inbox