an><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;counts are&#39;</span><span class="p">,</span><span class="w"> </span><span class="nx">result</span><span class="p">)</span>
</code></pre></div>
</div>
<p>When we run it with our usual test program as input, we get:</p>
<div class="code-sample lang-out" title="generator-count.out">
<div class="highlight"><pre><span></span><code>counts are { &#39;*&#39;: 2, &#39;+&#39;: 1 }
</code></pre></div>
</div>
<p>Genera