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

Given a year year and a month month, return the number of days of that month.
 
Please complete the following python code precisely:
```python
class Solution:
    def numberOfDays(self, year: int, month: int) -> int:
```