window-combinations

window-combinations is a compiled Lisp function in `window.el'.

(window-combinations WINDOW &optional HORIZONTAL)

Return largest number of windows vertically arranged within WINDOW.
WINDOW must be a valid window and defaults to the selected one.
If HORIZONTAL is non-nil, return the largest number of
windows horizontally arranged within WINDOW.