Any keeper, owner or proprietor of a livery stable, or other place for feeding and caring for stock for pay, shall have a lien on all stock kept and fed by him, for the payment of his charges, for keeping and feeding such stock, and he shall have the right to retain the stock, or so much thereof as may be necessary for the payment of such charges; and said lien shall continue for six months on any stock so kept, fed and cared for in possession of persons with notice of such lien.