fix count_lines again