In a civil action or proceeding there shall be allowed to the prevailing party, who has appeared by attorney, the following sums as costs, which in no event shall be less than $3 nor more than $50:
A.
To the plaintiff, if he or she recovers judgment after trial is commenced, 10% of the amount recovered or of the amount demanded in any counterclaim, whichever is greater, but in no event less than $5.
B.
To the defendant, if he or she recovers judgment after trial is commenced, 10% of the amount demanded in the complaint or recovered on his or her counterclaim, whichever is greater, but in no event less than $5.
D.
Where an action or counterclaim is discontinued before trial, costs shall be allowed at the rates prescribed by Subsection C of this section. Where an action or counterclaim is discontinued after the trial thereof has commenced, costs shall be allowed at the rates prescribed by Subsection A or B as the case may be.
E.
If the defendant interposes a counterclaim, and both the plaintiff's complaint and the defendant's counterclaim are dismissed, costs shall be awarded as follows: The plaintiff's costs shall be computed at the rates prescribed in Subsection A of this section based on the amount demanded in the counterclaim, and the defendant's costs shall be computed at the rates prescribed in Subsection B of this section based on the amount of the plaintiff's claim, such computation being made without regard to the limitation of $50 prescribed in this section, and the costs to be included in the judgment, in no event to exceed $50, shall consist of the amount of the difference between the plaintiff's costs and the defendant's costs as thus computed and shall be awarded to the party whose costs as above computed are the larger. Neither party shall be entitled to disbursements. If the defendant interposes a counterclaim and both the plaintiff and defendant recover on their claims, the plaintiff's costs shall be awarded at the rates prescribed in Subsection A of this section, based on the amount recovered upon his or her claim, and the defendant's costs shall be awarded at the rates prescribed in Subsection B of this section, based on the amount recovered upon his or her claim; the costs to be included in the judgment shall consist of the amount of the difference between the plaintiff's costs and the defendant's costs, which shall be thus computed without regard to the limitation of $50 heretofore prescribed by this section and shall be awarded to the party whose costs as above computed are the larger. Costs as finally awarded by virtue of this subsection shall not exceed $50.
F.
To either party, where provision for costs is not otherwise made, the Court may, in its discretion, award costs not exceeding $10.
G.
To either party, the Court may, in its discretion, grant costs not exceeding $10, upon a motion, including the adjournment of a trial.
H.
In an action for the recovery of one or more chattels or for the enforcement or foreclosure of a lien, plaintiff's costs shall be computed upon the value of the chattel or the amount of the lien as assessed or found by the Court or jury, and the defendant's costs shall be computed upon the value of the chattel or the amount of the lien as claimed by the plaintiffs.