A counterclaim is a claim for relief filed by the defendant in opposition to the claim of the plaintiff. If the defendant makes a claim against the plaintiff, such claim is called a counterclaim.
For example, after a bank sues a customer to recover an unpaid debt, the customer files a counterclaim against the bank alleging fraud in procuring the debt.