Translate the following question to SQL: How many times the number of adults and kids staying in a room reached the maximum capacity of the room?

Schema: CREATE TABLE Rooms (
    RoomId TEXT   PRIMARY KEY,
    roomName TEXT,
    beds INTEGER,
    bedType TEXT,
    maxOccupancy INTEGER,
    basePrice INTEGER,
    decor TEXT,
    UNIQUE (RoomId)
);

CREATE TABLE Reservations (
    Code INTEGER   PRIMARY KEY,
    Room TEXT,
    CheckIn TEXT,
    CheckOut TEXT,
    Rate REAL,
    LastName TEXT,
    FirstName TEXT,
    Adults INTEGER,
    Kids INTEGER,
    FOREIGN KEY (Room) REFERENCES Rooms(RoomId),
    "CheckIn" TEXT,,
    "CheckOut" TEXT,
);
user
SELECT count(*) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room  =  T2.RoomId WHERE T2.maxOccupancy  =  T1.Adults + T1.Kids;
assistant