List how many times the number of people in the room reached the maximum occupancy of the room. The number of people include adults and kids.
select count(*) from reservations as t1 join rooms as t2 on t1.room = t2.roomid where t2.maxoccupancy = t1.adults + t1.kids;