When the defendant pleads a counterclaim to the plaintiff's demand, to which the plaintiff replies the statute of limitations, the defendant is nevertheless entitled to his counterclaim, where it was a legal subsisting claim at the time the right of action accrued to the plaintiff on the claim in the action.
Ala. Code § 6-8-84 (1975)