Take `numAgents` into account for agent creation.