When an appeal is taken from the county auditors' report or settlement of the account of any public officer, in accordance with the laws relating thereto, and such appeal results favorable to the appellants in such a manner that money is recovered for any county, township, borough, school district, or poor district, the court hearing such appeal shall make an order to pay a counsel fee, which it deems just and reasonable, to the counsel representing such appeal, out of the funds so recovered.
16 P.S. § 9402