code: public function countWithFilter(PaginateFinderConfiguration $configuration, $siteId)
      {
          $qa = $this->createAggregationQuery();
          $this->filterSearch($configuration, $qa, $siteId);
  
          return $this->countDocumentAggregateQuery($qa);
      }
docs: @param PaginateFinderConfiguration $configuration
  @param string                      $siteId
  
  @return int