Put another way, the single most misleading statement on a research-grade certificate is a lot number with no statement of how many vials from that lot were tested.
The sample size determination requires choosing a confidence level and an acceptable error rate, and the smaller the error rate you want, the larger your sample must be.
Sampling plans for pharmaceutical manufacturing are defined in ISO 2859 and ANSI Z1.4, and they are based on statistical sampling theory.
The limitation is that you cannot know for certain without testing every vial, and you almost never can afford to do that.
In practice: ask for the chromatogram, check the method section, check the lot number against the vial, and set your accept threshold before you see the result rather than after.
edited 9 Dec 2024 by tobias_maartens — corrected a unit error in the worked example