Check out example codes for "unity get number of child objects". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com