code: def set_max_order_count(self, max_count, on_error='fail'):
          
          control = MaxOrderCount(on_error, max_count)
          self.register_trading_control(control)
docs: Set a limit on the number of orders that can be placed in a single
          day.
  
          Parameters
          ----------
          max_count : int
              The maximum number of orders that can be placed on any single day.