sample_size function

Calculate sample sizes