code: public String getCountStatement()
      {
          StringBuilder  stmt = new StringBuilder();
          stmt.append( _SELECT_COUNT_ ).append( _fromClause ).append( _whereClause );
  
          return stmt.toString();
      }
docs: Returns the OQL statement to count the objects.
  
  @return
  an OQL statement.