public static int countParams(cp_info constant_pool[],int m){
  StringTokenizer st;
  String s=getTypeDescr(constant_pool,m);
  s=ClassFile.parseMethodDesc_params(s);
  st=new StringTokenizer(s,",",false);
  return st.countTokens();
}

public static int countParams ( cp_info constant_pool [ ] , int m ) { StringTokenizer st ; String s = getTypeDescr ( constant_pool , m ) ; s = ClassFile . parseMethodDesc_params ( s ) ; st = new StringTokenizer ( s , "," , false ) ; return st . countTokens ( ) ; }
counts the number of parameters of the given method .
