fix for unread count

A more fast (and actually working) method for updating the unread count.