Is it rim of paper or ream of paper?

Ream of paper not rim of paper in one ream There are 500 sheets of paper