> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
> Use this file to discover all available pages before exploring further.

# planSubscriptionsCount

> Get the count of subscriptions for a plan



**query** `planSubscriptionsCount(input: SubscribedCustomersCountInput!): SubscribedCustomersCountResult!`

## Arguments

**`input`**: `SubscribedCustomersCountInput!` (required)

Get Subscribed Customers Count Input

## Returns

`SubscribedCustomersCountResult!`

**`count`**: `Int!`

The count of subscribed customers

---

**`updatedAt`**: `DateTime!`

The timestamp of the last update

## Examples

```graphql Query
query PlanSubscriptionsCount($input: SubscribedCustomersCountInput!) {
  planSubscriptionsCount(input: $input) {
    count
    updatedAt
  }
}
```

```json Variables
{
  "input": {
    "environmentId": "string",
    "packageRefId": "string"
  }
}
```

```json Response
{
  "data": {
    "planSubscriptionsCount": {
      "count": 1,
      "updatedAt": "value"
    }
  }
}
```


## Related topics

- [Go SDK](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/go.md)
- [Stigg plan limits and usage](https://docs.stigg.io/documentation/managing-your-account/billing/plan-limits-and-usage.md)
- [Overview](https://docs.stigg.io/documentation/importing-and-exporting-data/import/overview.md)
- [Subscription downgrades](https://docs.stigg.io/documentation/managing-customers-and-subscriptions/subscription-updates/subscription-downgrades.md)
- [Subscription upgrades](https://docs.stigg.io/documentation/managing-customers-and-subscriptions/subscription-updates/subscription-upgrades.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.