Thanks spunkets. I was thinking this was something completely separate from building code or should be so far as the structure was concerned. Appears a little too regulated on the surface. I suppose I should check into my own towns building code
The building code is what contains the occupancy rules.