[algorithm.count_if] Reduce inner function parameter.
Merge pull request #36 from kariya-mitsuru/count_if

[algorithm.count_if] Reduce inner function parameter.