code: public function countWithFilter(PaginateFinderConfiguration $configuration, $siteId, $language)
      {
          $elementName = 'node';
          $qa = $this->createQueryWithFilterAndLastVersion($configuration, $siteId, $language, $elementName);
  
          return $this->countDocumentAggregateQuery($qa);
      }
docs: @param PaginateFinderConfiguration $configuration
  @param string                      $siteId
  @param string                      $language
  
  @return int