<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_max_order_count(self, max_count, on_error='fail'):
 """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. """

        control = MaxOrderCount(on_error, max_count)
        self.register_trading_control(control)