code: public int getNumArgumentsIncludingObjectInstance(InvokeInstruction ins, ConstantPoolGen cpg)
              throws DataflowAnalysisException {
          int numConsumed = ins.consumeStack(cpg);
          if (numConsumed == Const.UNPREDICTABLE) {
              throw new DataflowAnalysisException("Unpredictable stack consumption in " + ins);
          }
          return numConsumed;
      }
docs: Get the number of arguments passed to given method invocation, including
  the object instance if the call is to an instance method.
  
  @param ins
  the method invocation instruction
  @param cpg
  the ConstantPoolGen for the class containing the method
  @return number of arguments, including object instance if appropriate
  @throws DataflowAnalysisException