> For the complete documentation index, see [llms.txt](https://micheleriva.gitbook.io/unomi-node/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://micheleriva.gitbook.io/unomi-node/api/profile/count.md).

# Count

Count how many profiles are indexed in Apache Unomi.

### Usage

```javascript
unomi.profile.count();
```

### Response

```
{
  success: <boolean>,
  status: <number>,
  data: <number>
}
```

### Real World Example

```javascript
async function countProfiles() {
  try {
    const profilesNumber = await unomi.profile.count();
    console.log(`There are ${profilesNumber.data} profiles!`);
  } catch (err) {
    console.error(err);
  }
}
```
