結果 : ruby count same elements in array