public int getNumBuckets() {
        return getNumArgs() - 1;
    }
Returns the number of buckets to divide the result into.

@return The bucket count.
container-search/src/main/java/com/yahoo/search/grouping/request/PredefinedFunction.java