Measuring total length