Finalizing line count