src/MetaModel.php
public function getCount($objFilter)
    {
        $arrFilteredIds = $this->getMatchingIds($objFilter);
        if (0 === count($arrFilteredIds)) {
            return 0;
        }

        $builder = $this->getConnection()->createQueryBuilder();

        return $builder
            ->select('COUNT(id)')
            ->from($this->getTableName())
            ->where($builder->expr()->in('id', ':values'))
            ->setParameter('values', $arrFilteredIds, Connection::PARAM_STR_ARRAY)
            ->execute()
            ->fetch(\PDO::FETCH_COLUMN);
    }
public function getCount($objFilter)
    {
        $arrFilteredIds = $this->getMatchingIds($objFilter);
        if (0 === count($arrFilteredIds)) {
            return 0;
        }

        $builder = $this->getConnection()->createQueryBuilder();

        return $builder
            ->select('COUNT(id)')
            ->from($this->getTableName())
            ->where($builder->expr()->in('id', ':values'))
            ->setParameter('values', $arrFilteredIds, Connection::PARAM_STR_ARRAY)
            ->execute()
            ->fetch(\PDO::FETCH_COLUMN);
    }
{@inheritdoc}