Count Builtin Array elements with a certain property.

I have a builtin array with 50 elements:

var Tokens : GameObject[50];

The transform.x of the Tokens changes when the game runs. I want to know each moment how many of the Tokens have a transform.x > 0.

I know that looping through the array looks like this:

var Tokens : GameObject[50];
for (var i = 0; i <50; i++) {
    //Do something
} 

Can I use this loop somehow, in order to count the elements (Tokens) of the array that have a transform.x>0?

var theCount : int = 0;

for ( var thisToken : GameObject in Tokens ) {

    if ( thisToken.transform.position.x > 0 ) {
        theCount ++;
    }
}

Debug.Log("GameObjects with positive x: " + theCount);

/*  another way to write it that does the same thing:   */

var theCount : int = 0;

for ( var i = 0; i < Tokens.length; i ++ ) {

    var thisToke : GameObject = Tokens*;*
 *if ( thisToke.position.x > 0 ) {*
 *theCount ++;*
 *}*
*}*
*Debug.Log("GameObjects with positive x: " + theCount);*
*```*