Frame:GetRegions
Frame:GetNumRegions
Returns the number of non-Frame child regions belonging to the frame.
numRegions = Frame:GetNumRegions()