The expense incident to the construction, maintenance, sanitation, healthfulness and hygiene of each county jail and prison in this state shall be paid out of the funds of the county in which such institution is located and of the town or city if the institution is a town or city institution.
Ala. Code § 14-6-104 (1975)