Counting a gameobject in a range

Hello, I have had a good look through the internet and the resources is there a way to count GameObjects in a range or even in a collider. I use
objects = GameObject.FindGameObjectsWithTag(“Man”); to get every object on the Map but I want to be able to use something like this for if the Object is in a collider or in a range check.

What I am wanting to do is increase the rate of gain if more people are in range the faster the rate will be.
(In JavaScript if possible please)
Many Thanks in advance for any advice or direction.

What about [Physics.OverlapSphere][1] and use layers to take out the player.

Something like this …

#pragma strict
private var whenNeeded : boolean;
function Update(){
       DetectEnemy(transform.position, 20);
function DetectEnemy(center: Vector3, radius: float) {
    var hitColliders = Physics.OverlapSphere(center, radius);
    for (var i = 0; i < hitColliders.Length; i++) {
        if(hitColliders*.tag == "Man")*

// collect information on the hits here
// and do what you need to do …
[1]: Unity - Scripting API: Physics.OverlapSphere