Function Widget.childCount

returns number of children of this widget

int childCount() @property const;