Katie stayed in a hotel that had 21 rooms. The number of rooms on each floor was 4 more than the number of floors in the hotel. How many floors did the hotel have?