Task: Text to Code
Input (English): How many times the number of adults and kids staying in a room reached the maximum capacity of the room?
Output (English): SELECT count(*) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId WHERE T2.maxOccupancy  =  T1.Adults + T1.Kids