set unread message count in notifications.