Add chunk length counter