Added get_nb_commands_to_run() to command_manager