public function aroundGetResultCount(Result $resultBlock, \Closure $proceed)
    {
        if ($this->resultCount === null) {
            $size = $resultBlock->getListBlock()->getLoadedProductCollection()->getSize();
            $this->resultCount = $size;
        }

        return $this->resultCount;
    }