(f) Payment on said schedule shall be as described in this subsection. For the duration of said schedule, the state treasurer shall, pursuant to section 20 of chapter 59, assess upon each city and town within the former jurisdiction of an abolished county an amount equal to the county tax paid by each such city and town as assessed pursuant to the provisions of chapter 35 for the fiscal year beginning July 1 of the year immediately before the transfer date in Middlesex, Worcester and Hampden counties, and an amount up to the county tax paid by each such city and town as assessed pursuant the provisions of chapter 35 for the fiscal year beginning July 1 of the year immediately before the transfer date in Essex, Berkshire and Hampshire counties; provided, however, that in Essex County such assessment shall be based on the fiscal year beginning July 1 two years before the transfer date. The amount of the assessment shall be paid annually by each city or town to the treasurer of the commonwealth and shall remain in effect for the duration of said amortization schedule, which, in Hampshire, Essex and Berkshire counties, shall not be less than ten years, and which, in Middlesex, Worcester and Hampden county, shall not exceed 25 years. In the event an assessment due is not paid in accordance with this section, it shall be deducted from the cherry sheet, so-called.