@JsonIgnore
    public Optional<Integer> getLineCount() {
        if (locationFrom != null && locationTo != null) {
            return Optional.of(locationTo.getLineNo() - locationFrom.getLineNo() + 1);
        } else {
            return Optional.empty();
        }
    }
@return The number of chars in the range
stroom-util-shared/src/main/java/stroom/util/shared/DataRange.java