A contract entered into under this article shall provide for compensation to the county whose sheriff is performing the service by the county for whose sheriff the service is performed, in an amount approximating the cost of the service.
Ca. Gov. Code § 26778