# strategiesByPairCount()

{% code title="CarbonController.sol" overflow="wrap" lineNumbers="true" %}

```solidity
    function strategiesByPairCount(Token token0, Token token1) external view returns (uint256)
```

{% endcode %}

This function is used to get the number of strategies for the specified token pair.

### **Function Arguments**

<table><thead><tr><th>Name</th><th width="147.66666666666663">Type</th><th>Description</th></tr></thead><tbody><tr><td>token0</td><td>Token</td><td>The token address of the first token in the pair </td></tr><tr><td>token1</td><td>Token</td><td>The token address of the second token in the pair</td></tr></tbody></table>

### Returns

This function returns the number of strategies that exist for the specified token pair.

### Example

```
strategiesByPairCount(
0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE, //token0
0x514910771AF9Ca656af840dff83E8264EcF986CA, //token1
)

// returns
// 612
```

{% hint style="info" %}
For the ETH token, use the contract address: *0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE*&#x20;
{% endhint %}
