code: public function getCount(ConfigInterface $objConfig)
      {
          $objFilter = $this->prepareFilter($objConfig);
          return $this->getMetaModel()->getCount($objFilter);
      }
docs: Return the amount of total items (filtering may be used in the config).
  
  @param ConfigInterface $objConfig The filter config options.
  
  @return int