# Counters

{% hint style="info" %}
Replace `[prefix]` with your server's prefix.
{% endhint %}

Counters are a way to keep track of different statistics in your server. You can track things humans only, bots, and more.

## Create a Counter

To create a counter, run the following command:

```
// Syntax
[prefix]counter add [counter_type] [channel_type] [name]

// Example
;counter add humans category {target} humans
```

Output:

<figure><img src="/files/ZJZy5odgnFkdAxTUHeGk" alt=""><figcaption></figcaption></figure>

## Breaking it Down

Firstly, you need to replace `[counter_type]` with an accepted counter type. You can find a list of those here: [Accepted Counter Types](https://docs.serenity.wtf/server-setup/counters#accepted-counter-types)

Next, you need to replace `[channel_type]` with an accepted channel type. You can find a list of those here: [Accepted Channel Types](https://docs.serenity.wtf/server-setup/counters#accepted-channel-types)

Lastly, you need to specify a name. The name can be anything. `{target}` indicates the number from the counter you set. In our example, we said humans. serenity would create a category named "587 humans". If I were to name it `ppl: {target}` instead, serenity would create a category named "ppl: 587".

## Remove a Counter

To remove a counter, run the following command:

```
// Syntax
[prefix]counter remove [counter_type]

// Example
;counter remove humans
```

This would remove the "humans" counter from the server. serenity will send an embed confirming the removal of the counter.

<figure><img src="/files/9Jns6OGMmLStbDgjDDy2" alt=""><figcaption></figcaption></figure>

## Accepted Counter Types

| members  | All members (including bots)   |
| -------- | ------------------------------ |
| humans   | All members (excluding bots)   |
| bots     | Bot count                      |
| boosters | Booster count                  |
| voice    | All members in a voice channel |

## Accepted Channel Types

| Type     | Description                            |
| -------- | -------------------------------------- |
| Voice    | Voice channel                          |
| Stage    | Stage channel (community servers only) |
| Text     | Text channel                           |
| Category | Channel category                       |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.serenity.wtf/server-setup/counters.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
