window-child-count

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

(window-child-count WINDOW)

Return number of WINDOW's child windows.
WINDOW can be any window.