public function onNewsListCountItems(array $archives, $featured, ModuleNewsList $module)
    {
        if (null === ($criteria = $this->getCriteria($archives, $featured, $module))) {
            return 0;
        }

        return $criteria->getNewsModelAdapter()->countBy($criteria->getColumns(), $criteria->getValues());
    }
public function onNewsListCountItems(array $archives, $featured, ModuleNewsList $module)
    {
        if (null === ($criteria = $this->getCriteria($archives, $featured, $module))) {
            return 0;
        }

        return $criteria->getNewsModelAdapter()->countBy($criteria->getColumns(), $criteria->getValues());
    }
public function onNewsListCountItems ( array $ archives , $ featured , ModuleNewsList $ module ) { if ( null === ( $ criteria = $ this -> getCriteria ( $ archives , $ featured , $ module ) ) ) { return 0 ; } return $ criteria -> getNewsModelAdapter ( ) -> countBy ( $ criteria -> getColumns ( ) , $ criteria -> getValues ( ) ) ; }
On news list count items.

@param array          $archives
@param bool|null      $featured
@param ModuleNewsList $module

@return int
On news list count items .