In all actions brought in any of the courts of this state, to recover the amount due on an open account or upon an account stated, if the plaintiff or someone in his behalf makes an affidavit of the amount due, as near as he can estimate the same, over and above all legal counterclaims and annexes thereto a copy of said account, and cause a copy of said affidavit and account to be served upon the defendant, with a copy of the complaint filed in the cause or with the process by which such action is commenced, such affidavit shall be deemed prima facie evidence of such indebtedness, unless the defendant with his answer, by himself or agent, makes an affidavit and serves a copy thereof on the plaintiff or his attorney, denying the same. If the defendant in any action gives notice, with his answer of a counterclaim founded upon an open account, or upon an account stated, and annexes to such answer and notice a copy of such account, and an affidavit made by himself or by someone in his behalf, showing the amount or balance claimed by the defendant upon such account, and that such amount or balance is justly owing and due to the defendant, or that he is justly entitled to have such account, or said balance thereof, set off against the claim made by said plaintiff, and serves a copy of such account and affidavit, with a copy of such answer and notice, upon the plaintiff or his attorney, such affidavit shall be deemed prima facie evidence of such counterclaim, and of the plaintiff's liability thereon, unless the plaintiff, or someone in his behalf, within 10 days after such service in causes in the circuit court, and before trial in other cases, makes an affidavit denying such account or some part thereof, and the plaintiff's indebtedness or liability thereon and serves a copy thereof upon the defendant or his attorney, and in case of a denial of part of such counterclaim, the defendant's affidavit shall be deemed to be prima facie evidence of such part of the counterclaim as is not denied by the plaintiff's affidavit. Any affidavit in this section mentioned shall be deemed sufficient if the same is made within 10 days next preceding the issuing of the writ or filing of the complaint or answer.
MCL 600.2145