When you sell physical products and you'd like to track automatically how many product units are on sale, you can limit the number of available items with the product availability feature:
This option also allows your customers to check during checkout how many items of the selected product there are in stock: