C++ easy solution
Code

# Code
```cpp []
class Solution {
public:
    int minElements(vector<int>& nums, int limit, int goal) {
        long sum = 0;
        for (auto n : nums) sum += n;

        long d = abs(goal - sum);
        int count = (d / limit) + (d % limit > 0);

        return count;
    }
};
```
['C++']