Any political subdivision, tax-exempt corporation, or proprietorship acting with respect to any hospital and which provides office buildings or office space to tenants who shall be engaged in private enterprise shall charge such tenants a sufficient amount of rent so that a portion of the rent payments shall be in lieu of taxes. Such payments in lieu of taxes shall be paid to the county treasurer to be allocated to the taxing units within which the property is located so that each shall receive, as in lieu of tax payments, the same amount that it would have received from such leased property if it were not exempt from taxation.