Added method for efficiently calculating the number of unread messages for a user across collections