Discount code usage limit

Hi, do anyone know if the limit for the discount code is based on the number of products purchased on the times the discount is used on a checkout?