結果 : find number of times element appears in array javascript