def count(expr, where=None):
    op = expr.op()
    if isinstance(op, _ops.DistinctArray):
        if where is not None:
            raise NotImplementedError
        result = op.count().to_expr()
    else:
        result = _ops.Count(expr, where).to_expr()

    return result.name('count')
Delete a proxy user based on a JobExecution
dataset/ETHPy150Open cloudera/ibis/ibis/expr/api.py/count--crossover with--dataset/ETHPy150Open openstack/sahara/sahara/utils/proxy.py/delete_proxy_user_for_job_execution