def count_of_certain_kind(kind):
        '''
        Get the count of certain kind.
        '''

        recs = TabPost.select().where(TabPost.kind == kind)

        return recs.count()
Get the count of certain kind.