A counterclaim to be viable in a foreclosure does not have to necessarily directly attack the making, validity or enforcement of the mortgage or note.
the counterclaim must have a sufficient relationship to the making, validity or enforcement of the note to meet the transaction test of practice book § 10-10.