This command will return the maximum number of lights you can have in any 3D scene. It is determined by the 3D device you are currently using.

Syntax: 
Return Integer=GET MAXIMUM LIGHTS()