controlling the increment in the variable

public class move : MonoBehaviour
{
public GameObject lefthand;
public Transform lchilds;
public int lcount;

       private void Update()
     {       
   
           lchilds = new Transform[lefthand.transform.childCount];
           lcount = lefthand.transform.childCount;
           for (int i = 0; i < lefthand.transform.childCount; i++)
           {
               lchilds *= lefthand.transform.GetChild(i);* 

if (if the variable i increases by 1)
{
//my codes
}
}
}
I have a array like this. And I have a code that should work every time a new object is added to the array. How can I determine if the array length increments by 1? I tried to explain the required situation in the codes.

You have created a for loop, integer ā€œiā€ will increment every time no matter what