#NEWLINE# @ classmethod #NEWLINE# def get_message_count( cls , exploration_id , thread_id ) : #NEWLINE# #INDENT# 'Returns the number of messages in the thread.\n\n        Includes the deleted entries.\n        ' #NEWLINE# full_thread_id = FeedbackThreadModel . generate_full_thread_id ( thread_id , thread_id ) #NEWLINE# return cls . get_all ( include_deleted_entities = True ) . filter ( ( cls . thread_id == full_thread_id ) ) . count ( )