Implemented CalculateChildNode and GetChildNodeCount methods