```python
def take_back(values: list, target: int) -> int:
    if not values or target <= 0:
        return -1

    total = sum(values)
    count = 0

    for value in reversed(values):
        total -= value
        count += 1

        if total >= target:
            return count

    return -1
```