Loop through all objects with same tag?

How can I loop and then count all objects that share the same tag? Thanks.

var objects = GameObject.FindGameObjectsWithTag("blah");
var objectCount = objects.Length;
foreach (var obj in objects) {
    // whatever
}

While Eric5h5's answer is actually working for C#, I'm just posting the JS version, for all of you, lazy people! :)

var objects = GameObject.FindGameObjectsWithTag("blah");
var objectCount = objects.length;
for (var obj : GameObject in objects) {
   // whatever
}