Implemented line count