The settlement upon which the defendant now relies to defeat the execution, was made on the 28th of August. He had before that had notice of the lien claimed by the attorney. If, therefore, the attorney had a lien upon the judgment for his services, the defendant is not in a situation to claim protection on the ground that when he made the settlement, he was ignorant of such claim.
It was a well settled doctrine before the Code, that although costs were in form recovered by the prevailing party, and became a part of the judgment in his favor, yet the attorney was to be regarded as an equitable assignee to the extent of his costs, and his rights as such assignee -would be protected, (See Williams agt. Batterman, 4 Barb. 47, and cases cited.)
Nor can I perceive that the doctrine has been changed by the Code. A reference to the first title of the chapter of the Eevised Statutes, relating to costs, (2 R. S. 612,) will show that costs, under the former system of proceedings, were always recovered as they are now, by the prevailing party in the action. The third title of the same chapter, prescribed the fees of various officers of the court, including among others, attorneys and counsellors. These fees, upon taxation, became a part of the costs recovered by the party. So now, certain allowances are made to the prevailing party, which are called costs. The rates of these allowances have been changed, but as before, they are recovered by the party, and become a part of his judgment. The great change which the Code effected in this respect, was the repeal of all statutes fixing the compensation of attorneys, solicitors and counsellors, and -leaving the amount open to contract between the parties in each particular case. The fee bill is no longer a criterion by which the amount to which the attorney is entitled can be determined. He is now entitled to receive, not the sum which has been allowed to his client for costs, but such sum as he has agreed to receive, or in the absence of an express agreement, such sum as his services were worth.
But in all this, I can see no reason why the attorney should not have the benefit of the former doctrine, that he is to be re*163garded as the equitable asignee of the judgment to the extent of his claim for services. The mode in which the extent of his interest is ascertained is changed, but the grounds upon which the courts act in protecting that interest, are unchanged. (See Sherwood agt. The Buffalo and New-York City Railroad Company, 12 How. 136; Sweet agt. Bartlett, 4 Sand. 661; Ward agt. Wordsworth, 9 How. 16 ; 1 E. D. Smith, 598.) In the latter case, the question directly before the court was, whether the lien of the attorney for his services had been abolished by the Code ? The whole subject has received at the hands of Judge Daly, a more complete and thorough examination than I have met with elsewhere. The opinion itself is a fine specimen of j uridicfal learning and sound argument. “ All that the Code has done,” says the learned judge, “ has been to abolish the fee bill, and take away all restraints upon attorneys making agreements with their clients for their services. It has left the attorney to agree with his client for a greater or less sum than is given to the party, by way of indemnity for his expenses ; but I cannot see how this legislation can be regarded as abolishing or affecting the attorney’s lien. He did not derive it from these statutes. It existed long before any fee bill was enacted. The right to a lien for services rendered is one thing, and the measure by which the value of these services is ascertained, is another. The latter has been the subject of statutory enactment, the former has not. The statute has not interfered with the right of lien, except to limit the extent of it; and when that limitation is removed by the repeal of all statutes regulating the fees of attorneys, the right of lien, upon the authority of adjudged cases, stands precisely as it stood before.”
My conclusion in this case is, that Mr. Olney is entitled to a lien upon the judgment for the amount due him for services rendered in the prosecution of the suit, whether as attorney or counsel, and that notwithstanding the settlement between the parties, as the equitable assignee of the judgment to the extent of the amount due him, has a right to enforce payment by execution.
*164Before making a final order upon the motion, and for the purpose of ascertaining the amount justly due to the attorney for his services as attorney and counsel in the action, I shall direct a reference to inquire and report upon that fact. An order will be entered appointing Rufus H. King, Esq., a referee for that purpose, and directing that the farther hearing of the motion stand over until the coming in of the report.