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

Given a binary string s, return the number of substrings with all characters 1's. Since the answer may be too large, return it modulo 109 + 7.
 
Please complete the following python code precisely:
```python
class Solution:
    def numSub(self, s: str) -> int:
```