# $moduleCount

`$moduleCount` **returns how many modules are installed** on the bot.

## Syntax

```
$moduleCount[filter]
```

## Parameters

| Parameter | Description |
|---|---|
| `filter` | Optional. `all` (default), `enabled` or `configurable`, as in `$moduleList`. |

## Return value

- **Type**: Number (as text)

## JavaScript

`bc.module.count(filter)` returns a number.

## Behavior

- Same filters as `$moduleList`.

## Examples

```bdfd
Modules installed: $moduleCount
```

## Notes

- Everything is read from the modules installed on the bot, so a module added later is covered with no change to your script.
- See the guide [Module and command functions](/docs/module-functions/).
