public function getActivityCountQuery(array $options)
    {
        // Find out how many entries we're paging form
        $qb = $this->createQueryBuilder();
        $qb->select('COUNT(id) as count');

        $this->addWhereActivity($qb, $options);

        return $qb;
    }
public function getActivityCountQuery(array $options)
    {
        // Find out how many entries we're paging form
        $qb = $this->createQueryBuilder();
        $qb->select('COUNT(id) as count');

        $this->addWhereActivity($qb, $options);

        return $qb;
    }
public function getActivityCountQuery ( array $ options ) { // Find out how many entries we're paging form $ qb = $ this -> createQueryBuilder ( ) ; $ qb -> select ( 'COUNT(id) as count' ) ; $ this -> addWhereActivity ( $ qb , $ options ) ; return $ qb ; }
Build the query for the entry count.

@param array $options

@return QueryBuilder
Build the query for the entry count .