# libtmux.query.count

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Lua
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-lua/blob/d68f829fe097e38dcbbf7147e276666fe615f0cf/lua/libtmux/query.lua#L183
- **Page:** https://libtmux.org/en/lua/v0.1.1/reference/libtmux-query-count/

```
count: fun(
  rows: libtmux.Selection<table>|table[],
  schema: libtmux.QuerySchema?,
):integer
```

@*param* `schema` — Required for ordinary sequences.

## Parameters

- `rows` (`libtmux.Selection<table>|table[]`)
- `schema` (`libtmux.QuerySchema?`): Required for ordinary sequences.
