implementing unreadMessagesCountForPlane