Reset the message count when clearing messages.