How to make a Wave/Round Based Enemy Spawner?

Hey, sorry for the mistake I forgot the space between the name, its neymar lol#9048. He (The Youtuber) seems to be spawning them under a for loop. Do you have multiple enemy types? If not you dont need to do a data table, If you do then instead of a data table you can have multiple spawners for each enemy type, this should make things simpler to control through code. As for the spawn system, if u know how many enemies u want to spawn then u can just call a spawn function which should only spawn one enemy then increment the enemies spawned integer value, then put a delay of X (This is the delay your looking for) time and call the spawn function again. Put an if statement for it to keep spawning until enemies spawned integer == Max enemies to spawn integer (This number is what ever you want, its just an int variable that represents the maximum amount of enemies you want to spawn this round).