Type StageObject Library display.* Return value DisplayObject Revision Current Public Release (2017.3135) Keywords group, stage, screen See also display.getCurrentStage() Group Programming (guide)
A reference to the current stage object, which is the root group for all display objects and groups. Currently, Corona has a single stage instance, so this function always returns a reference to the same object.
local count = display.currentStage.numChildren print( "Number of objects on the screen = " .. count )