private function getCategoryImageCount(Category $category) { return $category->getCategoryImagesSet()->getTotalRecordCount(); }