The maximum number of entities is controlled by the variable max_entities, which must be set before loading the level. By default it is set to 10 * nexus, but you can change its value to be whatever you want.