learn to count newlines correctly in multiline comments