up.layer.count
JavaScript property
Returns the number of layers in the layer stack.
The count includes the root layer. Hence a page with a single overlay would return a count of 2.
Value
count
The number of layers in the stack.
Type: number