Unity How to find or count other GameObjects

FindObjects.cs
// count number of gameobjects with the 'bullet' tag
int bullets = GameObject.FindGameObjectsWithTag("bullet").Length;
 
// find a chilc gameobject and call attached script method
GameObject go = (GameObject) transform.Find("HealthObject").gameObject;
 
Health script = go.GetComponent<Health>();
script.updateHealth(enemyHealth);	
 
// find GameOBject
GameObject go = GameObject.Find("MyGameObject");
 
// Get a component from GameObject
GameObject go = GameObject.Find("MyGameObject");
GUIText gui = go.GetComponent<GUIText>();
 
// Access script of a GameObject
GameObject go = GameObject.Find("MyGameObject");
MyScript script = go .GetComponent<MyScript>();
Navigation
Print/export
Toolbox