pass minCountThreshold properly to gateHasSufficientData.