pub fn count_threshold_or_default(threshold: Option<u32>) -> u32
Get the configured task count threshold, or the default.