@Override
    public int hashCode() {

        int result = streamStateElement != null ? streamStateElement.hashCode() : 0;
        result = 31 * result + minCount;
        result = 31 * result + maxCount;
        return result;
    }
Count state element used in patterns
modules/siddhi-query-api/src/main/java/io/siddhi/query/api/execution/query/input/state/CountStateElement.java