how to know how many gameobjects with a specific tag is presnt in a scene in unity code example
Example: how to find the number of objects with the same tag in unity
if(GameObject.FindGameObjectsWithTag("Enemy").Length > 20) { // Do something }
if(GameObject.FindGameObjectsWithTag("Enemy").Length > 20) { // Do something }