# libtmux.SnapshotSession.window_count

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Lua
- **Kind:** attribute
- **Source:** https://github.com/libtmux/libtmux-lua/blob/d68f829fe097e38dcbbf7147e276666fe615f0cf/lua/libtmux/_internal/fields.lua#L17
- **Inherited from:** libtmux.Fields.Session
- **Page:** https://libtmux.org/en/lua/v0.1.1/reference/libtmux-snapshotsession-window_count/

## In other ports

How many windows the session holds

| Language | Equivalent |
| --- | --- |
| Python | no equivalent on `Session` |
| Ruby | [`LibTmux::SessionSnapshot#window_count`](/en/ruby/latest/reference/libtmux-sessionsnapshot-window_count/) (method) |
| TypeScript | no equivalent on `Session` |
| Rust | [`session.Session.window_count`](/en/rs/latest/reference/session-session-window_count/) (method) |
| Go | [`tmux.Session.WindowCount`](/en/go/latest/reference/tmux-session-windowcount/) (method) |
| Java | no equivalent on `Session` |
| C# | no equivalent on `Session` |
| C++ | [`libtmux::Session::window_count`](/en/cxx/latest/reference/libtmux-session-window_count-nx2y/) (method) |
| Swift | [`Session.windowCount`](/en/swift/latest/reference/session-windowcount/) (property) |

No equivalent is recorded in PowerShell, Julia, Elixir, Kotlin, Scala or F#.
