get line lengths