find if tag exist in project settings unity code example
Example: unity how to check how many gameobject of a tag exists
if(GameObject.FindGameObjectsWithTag("Enemy").Length > 20) {
// Do something
}
if(GameObject.FindGameObjectsWithTag("Enemy").Length > 20) {
// Do something
}