Determination of sample size