mc_N function

Calculate local sample sizes.