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

Given an integer n, return the count of all numbers with unique digits, x, where 0 <= x < 10n.
 
Please complete the following python code precisely:
```python
class Solution:
    def countNumbersWithUniqueDigits(self, n: int) -> int:
```