Show unread count in the document title

Shows the number of unread items in the document title and updates the text as read statuses change.