------
## 最终结论
```python
def count_nums(arr):
    count = 0
    for num in arr:
        digit_sum = sum(int(digit) if i > 0 else -int(digit) for i, digit in enumerate(str(num)))
        if digit_sum > 0:
            count += 1
    return count
```