Thanks for the comment and great question!
The number on the die = how many openings come off of the room you are adding, irrespective of how many of these openings connect to previous openings (forming doorways).
Hope this helps. :)