fix for unread count

A more fast (and actually working) method for updating the unread count.
Merge pull request #1 from Hedath/master

Fix for unread count