an> <span class="s2">&quot;count&quot;</span><span class="p">:</span>
        <span class="k">return</span> <span class="n">ts_out</span>
    <span class="k">elif</span> <span class="n">disttype</span> <span class="o">==</span> <span class="s2">&quot;freq&quot;</span><span class="p">:</span>
        <span class="k">return</span> <span class="n">ts_out</span> <span class="o">*</span> <span class="n">ts</span><span class="o">.</span><span class="n">index</span><span class="o">.</span><span class="n">freq</spa