window-number: variable

Default value: none

This variable holds a number that denotes the current window's
position in the window order. Tiled windows are numbered from the
upper-left window, which is numbered zero, to the lower-right window.
Pop-up windows always come after tiled windows in this order, with the
most recently created pop-up window last.