def _count(self):
    sql = 'select count(*) from {}'.format(self._address.name)
    try:
        self._cur.execute(sql)
        ret = self._cur.fetchall()
        count = ret[0][0]
    except:
        count = 0
    return count
def _count(self):
    sql = 'select count(*) from {}'.format(self._address.name)
    try:
        self._cur.execute(sql)
        ret = self._cur.fetchall()
        count = ret[0][0]
    except:
        count = 0
    return count