Hotels do have ways of monitoring how many people are in each room, and it's not uncommon for them to check if they suspect that there are extra guests. One-way hotels may monitor this is through security cameras or by conducting random spot checks of rooms.