The length property represents the number of frames within a window.
This returns the same results as Window.frames.length.
<html> <script language="JavaScript"> <!-- document.write( win.length ); --> </script> </html>