Each county jail or town or city prison must be of sufficient size and strength to contain and keep securely the prisoners confined therein and must contain separate apartments for men and for women. It shall be fireproof, properly ventilated, sufficiently lighted by day and night, adequately heated and contain adequate sanitary plumbing and sewerage connections.