[algorithm.count_if] Reduce inner function parameter.