def METHOD_NAME(self, win_id: int, count: int = 1, register: str = None) -> None:
    """Run a recorded macro.
    Args:
        count: How many times to run the macro.
        register: Which macro to run.
    """
    self._macro_count[win_id] = count
    if register is None:
        mode_manager = modeman.instance(win_id)
        mode_manager.enter(usertypes.KeyMode.run_macro, 'run_macro')
    else:
        self.run_macro(win_id, register)