Separated print_line and print_line_ln & implementer count_lines