No building hereafter shall be constructed, enlarged, extended, reconstructed, altered or partitioned so as to provide more than one kitchen, three bathrooms or three water closets and four rooms for sleeping purposes, nor shall more than four rooms in any one building be used for sleeping purposes. For the purposes of this section, all accessory buildings and accessory uses to the main building shall be included in determining compliance with the provisions of this subsection.