結果 : count number of same elements in array javascript