The defendant may interpose a counterclaim for the value of such improvements.
Mass. Gen. Laws ch. 237, § 18