On reading the. appeal book, we are satisfied with the conclusion of the learned judge at Special Term that the defendant John D. Safford is solvent and able pecuniarily to respond to the appellant for whatever compensation he may be entitled to as the attorney of the defendants in this action, and also that the settlement ‘complained of was not made collusively or witli intent to defraud the appellant. The settlement was made before judgment.
Such being the facts, the appellant has no footing which gives him a right to set aside the settlement and continue the action for the purpose of collecting his costs, unless the case is within the pro. visions of the Code which give an attorney a lien upon the cause of *522action before judgment. Those provisions are contained in section 66 of the Code of Civil Procedure, as amended in 1879, and are as follows: “ From the commencement of an action or the service of an answer containing a counter-claim, the attorney who appears for a party has a lien upon his client’s cause of action or counter-claim which attaches to a verdict, report, decision or judgment in his client’s favor and the proceeds thereof in whosesoever hands they may come; and cannot be affected by any settlement between the parties before or after judgment.”
The question arises-whether the appellant’s clients have a counterclaim in this action to which his lien as an attorney can attach. The action is ejectment. The plaintiff, in his complaint, demands judgment for the possession of the premises described therein and damages for withholding the same. Section 1531 of the Code of Civil Procedure provides that in an action of ejectment, “where permanent improvements have been made in good faith' by the defendant, or those under whom he claims, while holding under color of title adversely to the plaintiff, the value thereof must be allowed to the defendant in reduction of the damages of the plaintiff, but not beyond the amount of those damages.” Under that section, one of the defendants has set up in her answer what the pleader has termed a “ counter-claim to the damages demanded ”' in the complaint, consisting of taxes paid and improvements and repairs made on the premises, to be set off in extinguishment or reduction of any claim for damages which the plaintiff may recover in the action.
We think the answer does not present a counter-claim, within the meaning of section 66, to which the lien of the attorney can attach. A cause of action is essential to constitute a counter-claim as defined by the Code. (Sec. 501). Here is no cause of action and no claim which is or can be the subject of affirmative relief. The claim set up is only available to meet or reduce any claim for damages which the plaintiff may recover, and if the plaintiff makes no claim for damages at the trial, or establishes Done, the claim set up by the defendant goes for naught. . In no event can there be an affirmative recovery by the defendant, and consequently there is nothing involved in the action upon which the defendant’s attorney can have a lien for costs.
*523The order should be affirmed, with ten dollars costs and disbursements.
Hardin and Barker, JJ., concurred.Order affirmed, with ten dollars costs and disbursements.