update assert for types count in domain