lib/Yucca/Component/Selector/SelectorAbstract.php
protected function prepareCount()
    {
        if (is_null($this->idsCount)) {
            $options = array(
                SelectorSourceInterface::RESULT => SelectorSourceInterface::RESULT_COUNT,
                SelectorSourceInterface::GROUPBY => $this->groupBy,
            );
            $this->idsCount = $this->source->loadIds(
                $this->criterias,
                array_merge($this->options, $options)
            );
        }

        return $this;
    }
protected function prepareCount()
    {
        if (is_null($this->idsCount)) {
            $options = array(
                SelectorSourceInterface::RESULT => SelectorSourceInterface::RESULT_COUNT,
                SelectorSourceInterface::GROUPBY => $this->groupBy,
            );
            $this->idsCount = $this->source->loadIds(
                $this->criterias,
                array_merge($this->options, $options)
            );
        }

        return $this;
    }
prepare count : there the criterias are fetched
@throws Exception\NoDataException
@return \Yucca\Component\Selector\SelectorAbstract