Update the number of unread items when marking an item as read

A possible response to issue #44