Add output for line count

Added output for the line count and removed unused line variable.