71-1-233. Attorney's fee on foreclosure. In an action to foreclose a mortgage of real property, the court must allow as a part of the costs a reasonable attorney's fee, which shall be fixed by the court, any stipulation in the instrument or any agreement between the parties to the contrary notwithstanding.