The number will tell you how many adjacent rooms are occupied (not including diagonals). So a good general strategy would be to use these clues to figure out which rooms to not open. Hope this helps!
try to add more info how to solve it in the description