A comaker or surety against whom an action is commenced jointly or alone may, with the consent of his comaker or principal, counterclaim a debt or liquidated demand due from the plaintiff at the commencement of the action to such comaker or principal.
Ala. Code § 6-8-81 (1975)