Say i have an array:

Code:
var my_array:Array = new Array("blah", "blah", "blah2" , "blah3", "blah2", "blah", "blah3", "blah4")
How would i count the duplicates and return the amount?

For instance, something like:

countArray(my_array, "blah") or my_array.countArray("blah")

to return the number "3"