Add count for logical lines