public function countTypesInGroup($groupId)
{
$q = $this->dbHandler->createSelectQuery();
$q->select($q->alias($q->expr->count($this->dbHandler->quoteColumn('contentclass_id')), 'count'))->from($this->dbHandler->quoteTable('ezcontentclass_classgroup'))->where($q->expr->eq($this->dbHandler->quoteColumn('group_id'), $q->bindValue($groupId, null, \PDO::PARAM_INT)));
$stmt = $q->prepare();
$stmt->execute();
return (int) $stmt->fetchColumn();
}