In any nuisance action brought in which an agricultural operation is alleged to be a nuisance, and which is found to be frivolous by the court, the defendant shall recover the aggregate amount of costs and expenses determined by the court to have been reasonably incurred in his behalf in connection with the defense of such action, together with a reasonable amount for attorney's fees.
SDCL 21-10-25.6