public int getNumArgs() {
        return args.size();
    }
Returns the number of arguments that were given to this function at construction.

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