# Pastebin UBSnl4Cs query = session.query(sa_func.count(models.SecretACL.id)) query = query.filter(models.ContainerACL.container_id == secret_id)