Inventory tracking is very simple!
In the store management area, go to Products, and click on a product you want to edit
Toggle the Track quantity button to enable inventory tracking and specify the stock quantity:
The amount will be automatically reduced on every sale. If the maximum quantity is reached, a client won't be able to add the product to the cart.