Where this title, other than Article 8 (commencing with Section 1297. 251) of Chapter 5, Article 5 (commencing with Section 1297.321) of Chapter 6, or subdivision (a) of Section 1297.322, refers to a claim, it also applies to a counterclaim, and where it refers to a defense, it also applies to a defense to that counterclaim.
Ca. Civ. Proc. Code § 1297.24