Javascript Array repetion(elem)
Array.prototype.repetion=function(elem){ return this.join().split(elem).length-1 }