original_string: protected function countNewsItems($begin, $end)
      {
          if (($criteria = $this->getSearchCriteria($begin, $end)) === null) {
              return 0;
          }
  
          return NewsModel::countBy($criteria->getColumns(), $criteria->getValues());
  	}
code: protected function countNewsItems($begin, $end)
      {
          if (($criteria = $this->getSearchCriteria($begin, $end)) === null) {
              return 0;
          }
  
          return NewsModel::countBy($criteria->getColumns(), $criteria->getValues());
  	}
code_tokens: protected function countNewsItems ( $ begin , $ end ) { if ( ( $ criteria = $ this -> getSearchCriteria ( $ begin , $ end ) ) === null ) { return 0 ; } return NewsModel :: countBy ( $ criteria -> getColumns ( ) , $ criteria -> getValues ( ) ) ; }
docstring: Count the news items
  
  @param int $begin
  @param int $end
  
  @return int
docstring_tokens: Count the news items