@classmethod
    def get_message_count(cls, exploration_id, thread_id):
        full_thread_id = FeedbackThreadModel.generate_full_thread_id(
            exploration_id, thread_id)
        return cls.get_all(include_deleted_entities=True).filter(
            cls.thread_id == full_thread_id).count()
Returns the number of messages in the thread.
dataset/ETHPy150Open oppia/oppia/core/storage/feedback/gae_models.py/FeedbackMessageModel.get_message_count