We have that in the UK, but its at the discretion of judges, and the loser can ask the court to look at the other sides costs and only award a reasonable amount rather than full costs (to deter people from running up costs to intimidate the other side).
it works reasonably well.