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

You are given an array of events where events[i] = [startDayi, endDayi]. Every event i starts at startDayi and ends at endDayi.
You can attend an event i at any day d where startTimei <= d <= endTimei. You can only attend one event at any time d.
Return the maximum number of events you can attend.
 
Please complete the following python code precisely:
```python
class Solution:
    def maxEvents(self, events: List[List[int]]) -> int:
```