Export/Exporter.php
private function countContentItemsByContentTypeId($contentTypeId, $options)
    {
        $criteria = $this->generateCriteria($contentTypeId, $options);

        $query = new Query();
        $query->query = new Criterion\LogicalAnd($criteria);
        $query->limit = 0;

        return $this->searchService->findContent(
            $query,
            (!empty($options['lang']) ? array('languages' => array($options['lang'])) : array())
        )->totalCount;
    }
private function countContentItemsByContentTypeId($contentTypeId, $options)
    {
        $criteria = $this->generateCriteria($contentTypeId, $options);

        $query = new Query();
        $query->query = new Criterion\LogicalAnd($criteria);
        $query->limit = 0;

        return $this->searchService->findContent(
            $query,
            (!empty($options['lang']) ? array('languages' => array($options['lang'])) : array())
        )->totalCount;
    }
private function countContentItemsByContentTypeId ( $ contentTypeId , $ options ) { $ criteria = $ this -> generateCriteria ( $ contentTypeId , $ options ) ; $ query = new Query ( ) ; $ query -> query = new Criterion \ LogicalAnd ( $ criteria ) ; $ query -> limit = 0 ; return $ this -> searchService -> findContent ( $ query , ( ! empty ( $ options [ 'lang' ] ) ? array ( 'languages' => array ( $ options [ 'lang' ] ) ) : array ( ) ) ) -> totalCount ; }
Returns total amount of content based on ContentType ids.

@param int $contentTypeId
@param array $options

@return int
Returns total amount of content based on ContentType ids .