Section 26. The defendant shall have judgment upon his counterclaim for the value of the improvements. The plaintiff shall have judgment and execution for the amount found due him for rents and profits and other damages due from the defendant as well as for seisin of the land.