Use member group size in replica statistics calculations

fixes #3526