def count_table(self, old, table):
        old.execute('select count(*) from %s' % table)
        result = old.fetchone()
        return result[0]
dataset/ETHPy150Open jpic/playlistnow.fm/apps/playlist/management/commands/migrate_pln.py/Command.count_table/original