Witnesses appearing before the controller or auditors shall receive the same allowance as is received by witnesses appearing before the courts of this Commonwealth. The allowance shall be paid out of the county treasury and, if final judgment is given against an officer whose accounts are settled by the controller or auditor, shall be included in the costs assessed against the officer.
16 Pa.C.S. § 14928