`$fileCount` returns the number of files of the bot. With a prefix, only the files whose path starts with it are counted.

## Parameters

| Parameter | Description |
|---|---|
| `prefix` | Optional. Beginning of the path, for example `uploads/`. |

## Return value

A number. The count stops at 1000.

## Examples

```bdfd
$if[$fileCount[uploads/]>=200]
  The gallery is full.
$endif
```

In JavaScript: `await bc.files.count('uploads/')`.
