Count Gameobjects in Trigger with Tag x?

i wanna do something pretty simple but actually don’t know how to do this.
i want to count all objects with a specific tag which are inside a trigger. for example tag Player, but dont count all the other tags. and giving out the number as float
how can i do this?

You can use something like this to store all objects in an array of gameObjects:

GameObject[] someObjects;
someObjects = GameObject.FindGameObjectsWithTag("Player");

And then you simply get the length by using someObjects.Length

float count;
void OnTriggerEnter(collider other)