code: public int countPredicates(int opPos) throws TransformerException
    {
  
      int count = 0;
  
      while (OpCodes.OP_PREDICATE == getOp(opPos))
      {
        count++;
  
        opPos = getNextOpPos(opPos);
      }
  
      return count;
    }
docs: Count the number of predicates in the step.
  
  @param opPos The position of the first predicate the m_opMap array.
  
  @return The number of predicates for this step.
  
  @throws TransformerException if a error occurs creating the Expression.