set unread message count in notifications.

was not able to squash commit requesting new pull
Merge pull request #493 from niktrix/patch-1

set unread message count in notifications.