When the defendant interposes a counterclaim, and thereupon demands an affirmative judgment against the plaintiff, the defendant's right to a provisional remedy is the same as in an action brought by the defendant against the plaintiff, for the cause of action stated in the counterclaim, and demanding the same judgment; and for the purpose of applying to such a case the provisions of NRS relating to provisional remedies, the defendant is deemed the plaintiff, the plaintiff is deemed the defendant, and the counterclaim so set forth in the answer is deemed the complaint.
NRS 36.010