protected function countNewsItems($begin, $end)
    {
        if (($criteria = $this->getSearchCriteria($begin, $end)) === null) {
            return 0;
        }

        return NewsModel::countBy($criteria->getColumns(), $criteria->getValues());
	}
protected function countNewsItems($begin, $end)
    {
        if (($criteria = $this->getSearchCriteria($begin, $end)) === null) {
            return 0;
        }

        return NewsModel::countBy($criteria->getColumns(), $criteria->getValues());
	}
protected function countNewsItems ( $ begin , $ end ) { if ( ( $ criteria = $ this -> getSearchCriteria ( $ begin , $ end ) ) === null ) { return 0 ; } return NewsModel :: countBy ( $ criteria -> getColumns ( ) , $ criteria -> getValues ( ) ) ; }
Count the news items

@param int $begin
@param int $end

@return int
Count the news items