def cumcount(expr, sort=None, ascending=True, unique=False,
             preceding=None, following=None):
    data_type = types.int64
    return _cumulative_op(expr, CumCount, sort=sort, ascending=ascending,
                          unique=unique, preceding=preceding,
                          following=following, data_type=data_type)