Query on spawning multiple NPC characters

I have an NPC device in the level and based on the total team player count, I need to create additional NPC’s to fill up the game. In the NPC Spawner the spawn count is set to 1 along with infinite spawn. When I loop the count and call the spawn method of the NPC spawner class, its always spawning 1 instance, I expected that it will spawn based on the loop count. Please let me know how I can achieve this.