To the extent of the amount established as plaintiff's claim the periods of limitations prescribed in this chapter do not bar a claim made by way of counterclaim unless the counterclaim was barred at the time the plaintiff's claim accrued.
MCL 600.5823