How to add a method to []?
===

First of all, I don't understand clearly what the type of this object (perhaps NativeArray ?). For me ember overrides the default javascript array with some mixins, by applying the NativeArray mixin to Array.prototype.

That beeing said, in my code, I want to do this kind of override by allowing:

    ["a", "b", "a"].count("a") // returns 2

I was trying to reopen the Enumerable Mixin (as for me it's the right place for this kind of function)

I'm sure that the reopen code is executed before using the count() method. But I encounter this error:
    
    Object has no method count().

Reading the code it seems that I have to re-apply the mixin to the Array.prototype, but unfortunately, doing `Ember.Enumerable.apply(Array.prototype)` does nothing.

What am I missing ?