unity get number of child objects

C#
// The number of child objects is given by:
GameObject.transform.childCount;
Source

Also in C#: