Where a defendant claims to be entitled to any equitable estate or right, or to relief upon any equitable ground against any deed, instrument or contract or against any right, title or claim asserted by any plaintiff in the proceedings, or alleges any ground of equitable defence to any claim of the plaintiff, the Court shall give to every equitable estate, right or ground of relief so claimed, and every equitable defence so alleged, the same effect by way of defence against the claim of the plaintiff as a court of equity ought formerly to have given if the like matters had been relied on by way of defence in any proceedings instituted for the like purpose.