LPS-31714

Query MB messages by threadId for message count