collapsed counter var definition in max_length