code: public function countBySite($siteId)
      {
          $qa = $this->createAggregationQuery();
          $qa->match(array('siteId' => $siteId));
  
          return $this->countDocumentAggregateQuery($qa);
      }
docs: @param string $siteId
  
  @return int