Commerce natively supports stock/inventory levels. These are stored on the product records and also included in the product reports.
To use stock with Resource Products, make sure you've set up a number template variable to hold the stock level and have set up the
commerce.resourceproduct.stock_field system setting accordingly.
To automatically reduce the stock level when an order is paid, enable the Update Stock module.
To make sure customers cannot add more to their cart than what is in stock, enable the Enforce Stock module as well.