Find number of objects with certain tag


Is there a way to find (in javascript) how many GameObjects with a certain tag are currently in the scene?

Or is there any way other than tags with wich I can do this. Tags seems appropriate though.

Thanks in advance. and do .Length on the result of that