Under some Building codes a penthouse cannot be more than one-third the size of the floor below it. There is no limit to the number of penthouses a building can have. The only limit is the amount of space they can take up (one-third rule). Also, some building codes do not allow mechanical or electrical equipment to count as a penthouse unless they are enclosed by a roof.