Change Current Capacity

For example, I want to create this kind of effect.

[Shooting star effect]
When the effect is activated, a random number between “30 and 1000” is set.
A shooting star will appear as many times as the number of random numbers.

I am currently adjusting the number of shooting stars by increasing or decreasing the “Spawn Rate”.
However, if the number is small, such as 30, more than 30 stars will appear.

Therefore, I would like to have an item like “Current Capacity” in addition to “Max Capacity”.
(“Current Capacity” is always smaller than "Max Capacity”)

Image

Sample
ss2

Continuing the discussion from <h1>noufel</h1>: