title: sinon.js : stub call does not increment callCount
body: <p><em><strong>sinon.js 9.0.2</strong></em></p>
  <p>In test I create a stub:</p>
  <p><strong>test.js</strong></p>
  <pre><code>const myHandler = {
    handle: (some_var_to_pass) =&gt; sinon.stub()[&quot;resolves&quot;]([{ whatever: &quot;whatever&quot; }]),
  };
  </code></pre>
  <p>Then hit the actual code from the test as some endpoint request (with <code>async / await</code>) which executs the code below:</p>
  <p><strong>code.js</strong></p>
  <pre><code>module.exports = (myHandler) =&gt; ({
    getStuff: async (req, res, next) =&gt; {
    const var1 = &quot;something1&quot;;
    const var2 = &quot;something2&quot;;
    const my_response = await myHandler.handle()(var1, var2);
  
    console.log(&quot;my response&quot;, JSON.stringify(my_response)); //correct, returns { whatever: &quot;whatever&quot;}
    console.log(&quot;Executed stub: &quot;, myHandler.handle(some_var_to_pass).callCount); //always returns zero
  </code></pre>
  <p>I control that <code>myHandler.handle</code> correctly goes through the stub creation and the <code>my_response</code> is</p>
  <pre><code>{ whatever: &quot;whatever&quot;}
  </code></pre>
  <p>However, <code>myHandler.handle().callCount</code> remains zero (not <code>undefined</code>). What am I missing to make it increment correctly? Or I need to actually set <code>.callCount</code> return to 1 when I create the stub (would be weird)?</p>