parseNumLines, better error checking