Already there are 5 peoples in the room.
Now,
After you enter into the room, the total number of persons will be
5 + 1 = 6
Then, you killed 4, so the number of persons alive in the room is 2.
But it is asked to find out the total number of persons regardless of alive or dead.
Hence, the 6 persons will remain inside the room.