@PipelineProperty(
            description = "The depth of XML elements to count records.",
            defaultValue = "1",
            displayPriority = 2)
    public void setRecordDepth(final int recordDepth) {
        // Add a fudge in here to cope with legacy depth being 0 based.
        this.recordDepth = recordDepth + 1;
    }
@param countRead Sets whether we are counting records read or records written.
stroom-pipeline/src/main/java/stroom/pipeline/filter/RecordCountFilter.java