{assign var="i" value=0}
{foreach name=simple_tab from=$zhinan_cate key=key item=item}
    {if $i}
        <small>|</small>
    {/if}
    {if $item['count']}
        {math assign="i" equation="x + y" x=$i y=1}
        <span><a title="{$segment_parent}期{$item['title']}" href="%7B%24base_url%7Dpinpaizhinan&t_id=%7B%24item%5B'id'%5D%7D"></a>{$segment_parent}期{$item['title']}</span>
    {else}
        {assign var="i" value=0}
    {/if}
{/foreach}