# session_group_count

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/session.c#L572
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-session_group_count/

```c
u_int session_group_count(struct session_group *sg)
```

## Parameters

- `sg` (`struct session_group *`)

## Referenced by

- [`format_cb_session_group_size`](/en/tmux/3.2a/reference/c-function-format-c-format_cb_session_group_size/) (function)
- [`session_is_linked`](/en/tmux/3.2a/reference/c-function-session_is_linked/) (function)
- [`session_new`](/en/tmux/3.2a/reference/c-function-session_new/) (function)

## Referenced declarations

- [`session.gentry`](/en/tmux/3.2a/reference/c-struct-session-gentry/) (attribute)
- [`session_group`](/en/tmux/3.2a/reference/c-struct-session_group/) (struct)
- [`session_group.sessions`](/en/tmux/3.2a/reference/c-struct-session_group-sessions/) (attribute)
