# getAvailableCredentialsCounts

> Returns the count of available NFC payment credentials.

Call the **getAvailableCredentialsCounts** API to obtain the number of available credentials.

## Method signature

```java
int getAvailableCredentialsCounts()
```

## Request parameters

N/A

## Response parameters

| **Item** | **Type** | **Description** | **Required** |
| --- | --- | --- | --- |
| result | int | The number of available credentials. This is a synchronous call with no callback. - If the SDK is not connected, the method returns `-2` (`TOKEN_NOT_CONNECTED`). - If the SDK is connected, the method returns the number of available credentials. | Yes |

## Sample

```java
manager = ACTapManager.getInstance(this.getApplication());

int availableCredentialsCounts = manager.getAvailableCredentialsCounts();
if(availableCredentialsCounts < X){
    manager.replenish()
}
```