added number samples per group into output