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

You wrote down many positive integers in a string called num. However, you realized that you forgot to add commas to seperate the different numbers. You remember that the list of integers was non-decreasing and that no integer had leading zeros.
Return the number of possible lists of integers that you could have written down to get the string num. Since the answer may be large, return it modulo 109 + 7.
 
Please complete the following python code precisely:
```python
class Solution:
    def numberOfCombinations(self, num: str) -> int:
```