Measure line lengths