(a) Every railroad company, foreign or domestic, doing business in this state and having any part of its real property situated wholly or in part in any fencing district formed in this state, whether it is formed under general or special law, shall be required to pay taxes for the benefit of any such district.
(b) The tax required in this section shall be assessed by the county court, which assessment shall be based upon the last assessment made by the Assessment Coordination Department, and each parcel of land or right-of-way owned by the railroad, and situated in any such district, shall be subject to the tax.