create method for obtaining sample size for cropping