Wasserstein consensus for Bayesian sample size determination