calc_n_copies function

Calculate number of target copies