original_string: public function count_records_select($table, $select, array $params=null, $countitem="COUNT('x')") {
          if ($select) {
              $select = "WHERE $select";
          }
          return $this->count_records_sql("SELECT $countitem FROM {" . $table . "} $select", $params);
      }
code: public function count_records_select($table, $select, array $params=null, $countitem="COUNT('x')") {
          if ($select) {
              $select = "WHERE $select";
          }
          return $this->count_records_sql("SELECT $countitem FROM {" . $table . "} $select", $params);
      }
code_tokens: public function count_records_select ( $ table , $ select , array $ params = null , $ countitem = "COUNT('x')" ) { if ( $ select ) { $ select = "WHERE $select" ; } return $ this -> count_records_sql ( "SELECT $countitem FROM {" . $ table . "} $select" , $ params ) ; }
docstring: Count the records in a table which match a particular WHERE clause.
  
  @param string $table The database table to be checked against.
  @param string $select A fragment of SQL to be used in a WHERE clause in the SQL call.
  @param array $params array of sql parameters
  @param string $countitem The count string to be used in the SQL call. Default is COUNT('x').
  @return int The count of records returned from the specified criteria.
  @throws dml_exception A DML specific exception is thrown for any errors.
docstring_tokens: Count the records in a table which match a particular WHERE clause .