How to set and limit quantity of all products to X automatically?

Thank you for this post. I have the exact same issue. We are releasing shirt designs in limited quantities and need to show that to buyers on the product page to create a sense or urgency to purchase. Please post if you find a solution. Have a good day.