(a) Costs which may be allowed in a civil action include:
(1) Fees of officers, witnesses, and jurors;
(2) Necessary expenses of taking depositions which were reasonably necessary in the action;
(3) Expenses of publication of the summons or notices, and the postage when they are served by mail;
(4) Compensation of a master as provided in Rule 53 of the Federal Rules of Civil Procedure;
(5) Necessary expense of copying any public record, book, or document used as evidence on the trial; and
(6) Attorney's fees as provided in subsection (b) of this section.
(b) The measure and mode of compensation of attorneys shall be left to the agreement, express or implied, of the parties; but there shall be allowed to the prevailing party in the judgment such sums as the court in its discretion may fix by way of indemnity for his attorney's fees in maintaining the action or defenses thereto; provided, however, the award of attorney's fees in personal injury cases is prohibited unless the court finds that the complaint filed or the defense is frivolous.
(c) For the purposes of this section, “frivolous” means:
(i) without legal or factual merit; or
(ii) for the purpose of causing unnecessary delay; or
(iii) for the purpose of harassing an opposing party.