original_string: public function get_events_select_count($selectwhere, array $params) {
          if (!$this->init()) {
              return 0;
          }
  
          if (!$dbtable = $this->get_config('dbtable')) {
              return 0;
          }
  
          return $this->extdb->count_records_select($dbtable, $selectwhere, $params);
      }
code: public function get_events_select_count($selectwhere, array $params) {
          if (!$this->init()) {
              return 0;
          }
  
          if (!$dbtable = $this->get_config('dbtable')) {
              return 0;
          }
  
          return $this->extdb->count_records_select($dbtable, $selectwhere, $params);
      }
code_tokens: public function get_events_select_count ( $ selectwhere , array $ params ) { if ( ! $ this -> init ( ) ) { return 0 ; } if ( ! $ dbtable = $ this -> get_config ( 'dbtable' ) ) { return 0 ; } return $ this -> extdb -> count_records_select ( $ dbtable , $ selectwhere , $ params ) ; }
docstring: Get number of events present for the given select clause.
  
  @param string $selectwhere select conditions.
  @param array $params params.
  
  @return int Number of events available for the given conditions
docstring_tokens: Get number of events present for the given select clause .