When a county is a party and costs are awarded against it, the costs shall be paid out of the county treasury.