How do I get the Value/ Number of the Objects of the FindObjectOfType function ?

Hello my script:

   var player : PlayerController[];
   var value : int;
    
    function Update (){
          player = FindObjectsOfType(CharacterController) as CharacterController[];
    }

Now I want the number of the Objects who have a CharacterController.

Use the Length property.

player.length

On a side note, the player array is PlayerController, but you’re searching for CharacterControllers. This might give you results that you do not want.