By the rules of the Supreme Court (O. XIX. r. 3) a defendant in an action may set off or set up any right or claim by way of counterclaim against the claims of a plaintiff, and such set-off or counterclaim has the same effect as a statement of claim in a cross-action.