public function getCount($objFilter)
{
$arrFilteredIds = $this->getMatchingIds($objFilter);
if (count($arrFilteredIds) == 0) {
return 0;
}
$objRow = $this->getDatabase()->prepare(sprintf('SELECT COUNT(id) AS count FROM %s WHERE id IN(%s)', $this->getTableName(), $this->buildDatabaseParameterList($arrFilteredIds)))->execute($arrFilteredIds);
/** @noinspection PhpUndefinedFieldInspection */
return $objRow->count;
}