Spawn an Actor using a widget button

Hello What if i want to spawn something multiple times based on the amount I want, lets say i have a widget where I’m able to click from 0 to 15 how would I be able to spawn the amount that I want?