protected function buildDataTablesCountFiltered(DataTablesWrapperInterface $dtWrapper) {

        $prefix = $dtWrapper->getMapping()->getPrefix();

        $qb = $this->createQueryBuilder($prefix)
            ->select("COUNT(" . $prefix . ")");

        DataTablesRepositoryHelper::appendWhere($qb, $dtWrapper);

        return $qb;
    }