In case no agreement is entered into as to the costs, they shall follow the event of the action, and be recovered by the successful party.