Detect last call of JQuery Plugin Constructor after multiple instantiation
<p>I'm building a JQuery Plugin that users will be able to call multiple times depending on specific options and preferences.</p>

<p>I'm looking for a way to know when they make the last call, because I need to execute some code during the very last call.</p>

<p>For example, let's say the code is thus:</p>

<pre><code>$('body').myPlugin(options_1);
$('body').myPlugin(options_2);
$('body').myPlugin(options_3);
</code></pre>

<p>Is there a way for me to determine how many times that my plugin constructor has been defined e.g. before my plugin code is run, or from the last plugin constructor?!</p>

<p>Just as an analogy, in JQuery there is the <code>.last()</code> method to get the last item in a set of matched elements. I'm trying to do the same thing, only this time with Javascript Constructors, so can run some code at the end of all the calls.</p>
