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

[algorithm.count] Reduce inner function parameter.