refine crlf counter