code: def count_of_certain_kind(kind):
          '''
          Get the count of certain kind.
          '''
  
          recs = TabPost.select().where(TabPost.kind == kind)
  
          return recs.count(f count_of_certain_kind(kind):
          '''
          Get the count of certain kind.
          '''
  
          recs = TabPost.select().where(TabPost.kind == kind)
  
          return recs.count()
docs: Get the count of certain kind.