All moneys derived from fees, fines and costs assessed by the judge and collected by the clerk shall be paid to the county, or, in the case of a juvenile court serving more than one (1) county, revenue shall be disbursed in accordance with the contract between the various county governments.
T.C.A. § 37-1-209