Count \r and \n only for line endings, not WSPACE.