Finde the index of a child from the hierarchy in script

Im just trying to get the index of the child say a parent object with 4 children . Then in each children script I want to get the index int of each child , any idea? thank you for your help

transform.GetSiblingIndex()