A township board may, by majority vote, pay from unexpended balances in its contingent fund to any hospital a sum that fairly represents the reasonable share of the township in the maintenance and support of the hospital whose facilities are made available to the residents of the township at standard rates. However, the hospital and township board shall agree upon the number of residents of the township to which the hospital shall make facilities available during each year.