code: def result(self, query, request_env, mindsdb_env, session):
      collection = query["count"]
  
      count = 0
      if collection == "predictors":
          count = len(mindsdb_env["model_controller"].get_models())
  
      return {"n": count, "ok": 1}
  
imports: from mindsdb.api.mongo.classes import Responder
  import mindsdb.api.mongo.functions
label_desc: Use image node_id 1 for calling the Responce obj's underlying member method code with example usage: obj.result(query, request_env, mindsdb_env, session) and returns: dict