Dynamic Form

I need to make a form which has a drop down list of numbers

then after the user selects the amount of number, it will create radio buttons in that many amount.

How do I do this? Is this kind of like a dynamic form fields then? I really don’t know what to call it.