In addition to any other costs allowed by law, the court in an action to enforce a lien shall allow as costs to each claimant whose lien is established the amount paid to verify and record the claim of lien, whether the claimant is a plaintiff or defendant.