When an action has been brought for the recovery of any assessments, the plaintiff shall be entitled to have and recover attorney fees on each assessment sued on. If the action is settled or a tender made prior to the trial of the action, or if judgment is taken on default, the attorney’s fees shall be five dollars ($5) plus one dollar ($1) additional for each lot or parcel of land included in one action. If the action proceeds to trial the court having jurisdiction of the cause shall fix and allow a reasonable attorney fee, which shall not exceed fifteen dollars ($15) plus one dollar ($1) additional for each lot or parcel of land included in one action. The attorney’s fee in either case shall be in addition to all taxable costs and the plaintiff may have judgment therefor.