public readonly property childCount as ULong:
Number of child widgets owned by this container.
size always describes graphical dimensions on widgets; use childCount when iterating over the child widget collection.
panel = Container()
panel.add(Label("Name"))
assert panel.childCount == 1