/**
  * {@inheritdoc}
  */
 public function getItemsCountInCategory(CategoryInterface $category, $inChildren = false, $inProvided = true)
 {
     $categoryQb = null;
     if ($inChildren) {
         $categoryQb = $this->categoryRepository->getAllChildrenQueryBuilder($category, $inProvided);
     }
     return $this->itemRepository->getItemsCountInCategory($category, $categoryQb);
 }
 /**
  * {@inheritdoc}
  */
 public function getItemsCountInCategory(CategoryInterface $category, $inChildren = false, $inProvided = true)
 {
     $categoryIds = $inChildren ? $this->categoryRepository->getAllChildrenIds($category, $inProvided) : [$category->getId()];
     return $this->itemRepository->getItemsCountInCategory($categoryIds);
 }