For the purposes of this Part, the expression “action” includes a counterclaim, and references to the plaintiff and to the defendant in an action shall be construed accordingly.