[algorithm.count] Reduce inner function parameter.