> For the complete documentation index, see [llms.txt](https://docs.daita.ch/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.daita.ch/usage/relational/functions/aggregation/count.md).

# COUNT

```typescript
const mountainCount = await client.selectFirst({
   select: count(),
   from: table(Mountain),
});
// sql: SELECT count(*)
//      FROM "Mountain"
//
// const mountainCount: number
```
