A regional library is a public library established and/or maintained by two or more counties, by action of their governing authorities, under the terms of a contract to which they all agree. The expenses of the regional library shall be apportioned between or among the counties concerned on such a basis as shall be agreed upon in the contract.