add update_unread_counts method in effort to speed up processing