Example: GetNumberLayers
To find out the number of layers on the second page of the active document:
[GetNumberLayers(0, 2)]