code: public static int getNumParametersForInvocation(InvokeInstruction inv, ConstantPoolGen cpg) {
          SignatureParser sigParser = new SignatureParser(inv.getSignature(cpg));
          return sigParser.getNumParameters();
      }
docs: Get the number of parameters passed to method invocation.
  
  @param inv
  @param cpg
  @return int number of parameters