By either party, in an action brought by an owner to recover goods in the possession of a pawnbroker or secondhand dealer, or an action brought by a pawnbroker or secondhand dealer against an owner, or a person claiming ownership, to determine title or ownership of any item, the prevailing party is entitled to reasonable attorney's fees and costs.