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 favorably to the appellants in such a manner that money is recovered for any school 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.
24 P.S. § 6-612