To set this up, navigate to Survey > Edit > Settings, enable the Response Quota option, specify the desired number of responses (e.g., 50), and click Save. Once the quota is reached, the survey will stop accepting responses, and participants will see an inactive survey message.
Refer to the screenshot: https://prnt.sc/qz6CtuLlc_pt
Refer to this help file for more details on the same: https://www.questionpro.com/help/quota-control.html