# api\_entities\_Asset\_TransferRestrictions\_Count.Count

[@polymeshassociation/polymesh-sdk](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/classes) / [Modules](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/modules) / [api/entities/Asset/TransferRestrictions/Count](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/modules-1/api_entities_asset_transferrestrictions_count) / Count

## Class: Count

[api/entities/Asset/TransferRestrictions/Count](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/modules-1/api_entities_asset_transferrestrictions_count).Count

Handles all Count Transfer Restriction related functionality

### Hierarchy

* [`TransferRestrictionBase`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/classes/api_entities_asset_transferrestrictions_transferrestrictionbase.transferrestrictionbase)<[`Count`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/enums/types.transferrestrictiontype#count)>

  ↳ **`Count`**

### Table of contents

#### Properties

* [addRestriction](#addrestriction)
* [get](#get)
* [removeRestrictions](#removerestrictions)
* [setRestrictions](#setrestrictions)

### Properties

#### addRestriction

• **addRestriction**: [`ProcedureMethod`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/interfaces/types.proceduremethod)<`Omit`<[`AddCountTransferRestrictionParams`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/modules-1/api_procedures_addtransferrestriction#addcounttransferrestrictionparams), `"type"`>, `BigNumber`, `BigNumber`>

Add a Count Transfer Restriction to this Asset

**`note`** the result is the total amount of restrictions after the procedure has run

**Overrides**

[TransferRestrictionBase](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/classes/api_entities_asset_transferrestrictions_transferrestrictionbase.transferrestrictionbase).[addRestriction](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/api_entities_asset_transferrestrictions_transferrestrictionbase.transferrestrictionbase#addrestriction)

**Defined in**

[api/entities/Asset/TransferRestrictions/Count.ts:27](https://github.com/PolymathNetwork/polymesh-sdk/blob/31dfa0dc/src/api/entities/Asset/TransferRestrictions/Count.ts#L27)

***

#### get

• **get**: () => `Promise`<[`ActiveTransferRestrictions`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/interfaces/types.activetransferrestrictions)<[`CountTransferRestriction`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/interfaces/types.counttransferrestriction)>>

**Type declaration**

▸ (): `Promise`<[`ActiveTransferRestrictions`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/interfaces/types.activetransferrestrictions)<[`CountTransferRestriction`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/interfaces/types.counttransferrestriction)>>

Retrieve all active Count Transfer Restrictions

**`note`** there is a maximum number of restrictions allowed across all types. The `availableSlots` property of the result represents how many more restrictions can be added before reaching that limit

**Returns**

`Promise`<[`ActiveTransferRestrictions`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/interfaces/types.activetransferrestrictions)<[`CountTransferRestriction`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/interfaces/types.counttransferrestriction)>>

**Overrides**

[TransferRestrictionBase](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/classes/api_entities_asset_transferrestrictions_transferrestrictionbase.transferrestrictionbase).[get](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/api_entities_asset_transferrestrictions_transferrestrictionbase.transferrestrictionbase#get)

**Defined in**

[api/entities/Asset/TransferRestrictions/Count.ts:56](https://github.com/PolymathNetwork/polymesh-sdk/blob/31dfa0dc/src/api/entities/Asset/TransferRestrictions/Count.ts#L56)

***

#### removeRestrictions

• **removeRestrictions**: [`NoArgsProcedureMethod`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/interfaces/types.noargsproceduremethod)<`BigNumber`, `BigNumber`>

Removes all Count Transfer Restrictions from this Asset

**`note`** the result is the total amount of restrictions after the procedure has run

**Overrides**

[TransferRestrictionBase](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/classes/api_entities_asset_transferrestrictions_transferrestrictionbase.transferrestrictionbase).[removeRestrictions](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/api_entities_asset_transferrestrictions_transferrestrictionbase.transferrestrictionbase#removerestrictions)

**Defined in**

[api/entities/Asset/TransferRestrictions/Count.ts:47](https://github.com/PolymathNetwork/polymesh-sdk/blob/31dfa0dc/src/api/entities/Asset/TransferRestrictions/Count.ts#L47)

***

#### setRestrictions

• **setRestrictions**: [`ProcedureMethod`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/interfaces/types.proceduremethod)<`Omit`<[`SetCountTransferRestrictionsParams`](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/interfaces/api_procedures_settransferrestrictions.setcounttransferrestrictionsparams), `"type"`>, `BigNumber`, `BigNumber`>

Sets all Count Transfer Restrictions on this Asset

**`note`** the result is the total amount of restrictions after the procedure has run

**Overrides**

[TransferRestrictionBase](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/classes/api_entities_asset_transferrestrictions_transferrestrictionbase.transferrestrictionbase).[setRestrictions](https://developers.polymath.network/polymesh-sdk-api-reference/docs-alpha/api_entities_asset_transferrestrictions_transferrestrictionbase.transferrestrictionbase#setrestrictions)

**Defined in**

[api/entities/Asset/TransferRestrictions/Count.ts:37](https://github.com/PolymathNetwork/polymesh-sdk/blob/31dfa0dc/src/api/entities/Asset/TransferRestrictions/Count.ts#L37)
