How to set a limit of children in a scrollbox?

Here’s what I understood from the somewhat convoluted description:

If that’s not it, could you clarify a bit more?