public function countByParentId($parentId, $siteId)
    {
        $qa = $this->createAggregationQueryBuilderWithSiteId($siteId);
        $qa->match(
            array(
                'parentId' => $parentId,
                'deleted'  => false,
            )
        );

        return $this->countDocumentAggregateQuery($qa);
    }
public function countByParentId($parentId, $siteId)
    {
        $qa = $this->createAggregationQueryBuilderWithSiteId($siteId);
        $qa->match(
            array(
                'parentId' => $parentId,
                'deleted'  => false,
            )
        );

        return $this->countDocumentAggregateQuery($qa);
    }
@param string $parentId
@param string $siteId

@return int