{if $total == 0}

ページは1つもありません。

{else}

計{$total}ページ

{/if}