I have a data frame that has 160M rows and 2 columns(material name and price). I want to determine how many the frequency at which prices occur.

For example,

the price $10 was given 100 different times. I'd like to sort the values by largest occurrence to smallest occurs (example, $100 was given 1000 times)

There are 2,484,557 unique prices, so a "table" is not the most useful solution.

my issue is I'm dealing with memory issues.

Any suggestions how I can accomplish this?