A sporting goods store has a section that displays baseball caps, and each shelf in the section displays 10 caps. After 16 caps were sold, each shelf was left with 7 caps except for the final shelf, which held 9 caps. How many shelves are in the section displaying baseball caps?