You can add or let this tab of limit quantity for total number of purchases and also set a maximum limit of total stock available.
Go to the Product section of your payment page.

Click on "Limit Quantity" option.

Now you can turn this tab on or off to set the maximum limit of total stock available and enter the quantity.

