Please solve the programming task below using a self-contained code snippet in a markdown code block.

You are given a 0-indexed 2D integer array nums representing the coordinates of the cars parking on a number line. For any index i, nums[i] = [starti, endi] where starti is the starting point of the ith car and endi is the ending point of the ith car.
Return the number of integer points on the line that are covered with any part of a car.
 
Please complete the following python code precisely:
```python
class Solution:
    def numberOfPoints(self, nums: List[List[int]]) -> int:
```