For acceptance sampling plans you should start with defining the distribution. E.g. if we assume a Binomial distr. we need to define the alpha risk, the success probability for the consumer risk, the the beta risk, and the success prob. for the beta risk. Once you have these values it is strait forward to calc the sample size. If you instead use a hypergeometric distr. you should also define the batch size.
Note that you will need many samples, if you like to verify that your failure rate is only a few ppm.