original_string: function set_count_sql($sql, array $params = NULL) {
          $this->countsql = $sql;
          $this->countparams = $params;
      }
code: function set_count_sql($sql, array $params = NULL) {
          $this->countsql = $sql;
          $this->countparams = $params;
      }
code_tokens: function set_count_sql ( $ sql , array $ params = NULL ) { $ this -> countsql = $ sql ; $ this -> countparams = $ params ; }
docstring: This is only needed if you want to use different sql to count rows.
  Used for example when perhaps all db JOINS are not needed when counting
  records. You don't need to call this function the count_sql
  will be generated automatically.
  
  We need to count rows returned by the db seperately to the query itself
  as we need to know how many pages of data we have to display.
docstring_tokens: This is only needed if you want to use different sql to count rows . Used for example when perhaps all db JOINS are not needed when counting records . You don t need to call this function the count_sql will be generated automatically .