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

# Event Counter

> Total number of events configured for your token

<span style={{display:"none"}}>For the complete documentation index, see [llms.txt](/llms.txt).</span>

Returns how many events you've configured in total. Combine with [`/event-by-index`](/api-reference/tokens/events/event-by-index) to list every event name.

### Response

<ResponseField name="event_count" type="integer">
  Total events configured
</ResponseField>

```javascript theme={null}
const res = await fetch("https://tokens.shakesco.com/event-counter", {
  headers: { Authorization: `Bearer ${API_KEY}` },
});
const { event_count } = await res.json();
```

<ResponseExample>
  ```json 200 OK theme={null}
  { "event_count": 3 }
  ```
</ResponseExample>
