# selection.Selection.count

- **Module:** selection.Selection
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/selection.ts#L502
- **Page:** https://libtmux.org/en/ts/latest/reference/selection-selection-count/

```
selection.Selection.count(criteria: : WhereOf<Model>) -> number
```

How many members match `criteria`, or how many there are without it.

## Example

```ts
snapshot.panes.count(); // every pane
snapshot.panes.count({ currentCommand: "vim" });
```
