25-4-401. Counterclaim by person sued in representative capacity. In an action against an executor, administrator, or other person sued in a representative capacity, the defendant may set forth as a counterclaim a demand belonging to the decedent or other person whom the executor, administrator, or person represents when the person so represented would have been entitled to set forth the counterclaim in an action against the person.