The county jail must be of sufficient size and strength to contain and keep securely the prisoners which may be confined therein and must contain at least two apartments, properly ventilated so as to secure the health of those confined therein: One for men and one for women.