code: def total_number(slug, kind='1'):
          '''
          Return the number of certian slug.
          '''
          return TabPost.select().join(
              TabPost2Tag,
              on=(TabPost.uid == TabPost2Tag.post_id)
          ).where(
              (TabPost2Tag.tag_id == slug) & (TabPost.kind == kind)
          ).count(f total_number(slug, kind='1'):
          '''
          Return the number of certian slug.
          '''
          return TabPost.select().join(
              TabPost2Tag,
              on=(TabPost.uid == TabPost2Tag.post_id)
          ).where(
              (TabPost2Tag.tag_id == slug) & (TabPost.kind == kind)
          ).count()
docs: Return the number of certian slug.