${percent is None and '%d%%' % stats.done_percent or percent}

Number of ${stats.unit}:
${interval.title}:
${interval.count}
Total:
${stats.count}