code: def check_message_count(self):
      p_params = self.params["polling"]
  
      chat_ids = []
  
      id_col = p_params["chat_id_col"]
      msgs_col = p_params["count_col"]
      # get chats status info
      ast_query = Select(
          targets=[Identifier(id_col), Identifier(msgs_col)],
          from_table=Identifier(p_params["table"]),
      )
  
      resp = self.chat_task.chat_handler.query(query=ast_query)
      if resp.data_frame is None:
          raise BotException("Error to get count of messages")
  
      chats = {}
      for row in resp.data_frame.to_dict("records"):
          chat_id = row[id_col]
          msgs = row[msgs_col]
  
          chats[chat_id] = msgs
  
      if self.chats_prev is None:
          # first run
          self.chats_prev = chats
      else:
          # compare
          # for new keys
          for chat_id, count_msgs in chats.items():
              if self.chats_prev.get(chat_id) != count_msgs:
                  chat_ids.append(chat_id)
  
          self.chats_prev = chats
      return chat_ids
  
imports: import time
  from mindsdb_sql.parser.ast import Identifier, Select, Insert
  from mindsdb.utilities import log
  from mindsdb.utilities.context import context
  from .types import ChatBotMessage, BotException
label_desc: Use image node_id 4 for calling the MessageCountPolling obj's underlying member method code with example usage: obj.check_message_count() and returns: chat_ids