The provisions of this
Act shall apply to any counter-claim or set-off alleged by the defendant in
all cases, and to the like extent, and for the same purpose in, to, or for
which they respectively would apply if the defendant had instituted an action
against the plaintiff or plaintiffs in respect of the same matter.