Win a gift after 10 purchases of a specific product

Youll need customer entities obviously.
Add a custom field to them to track the qty.
Take a look at this video I did for loyalty points.

If you change out the calculation for points with a count and constrain to the products in question.