collapsed counter var definition in max_length
Merge pull request #1 from denismosolov/master

Small things