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

Given an integer num, return the number of digits in num that divide num.
An integer val divides nums if nums % val == 0.
 
Please complete the following python code precisely:
```python
class Solution:
    def countDigits(self, num: int) -> int:
```