The sample quantity is determined based on statistical methods and the customer's specific requirements to ensure a representative check of production quality.