thresholds count distinct