original_string: 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());
      }
code: 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());
      }
code_tokens: 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 ( ) ) ; }
docstring: On news list count items.
  
  @param array          $archives
  @param bool|null      $featured
  @param ModuleNewsList $module
  
  @return int
docstring_tokens: On news list count items .