# Pastebin hbHkmZJ7 def get_count(self, secret_id, session=None): """Gets count of existing container ACL(s) for a given container.""" session = self.get_session(session) query = session.query(sa_func.count(models.ContainerACL.id)) return query.scalar()