Set total unread events count in $unread
Merge pull request #334 from Simounet/feature/count-total-events

Set total unread events count in $unread