A hospital records 240 patient visits in a 6-hour shift.What is the average rate of patient visits per hour?