def get_count_items(self):
    self.session = Session(bind=self.engine)
    items = self.session.query(func.count(OrgTable.id)).scalar()
    self.session.close()
    return logging.info(('Now Database items count: %s' % items))
def get_count_items(self):
    self.session = Session(bind=self.engine)
    items = self.session.query(func.count(OrgTable.id)).scalar()
    self.session.close()
    return logging.info(('Now Database items count: %s' % items))