count and hold amount of messages to calculate unread messages by the time