結果 : javascript count items in array with condition