Easy Python Solution
Code
# Code
```python3 []
class Solution:
    def validSubstringCount(self, word1: str, word2: str) -> int:
        def check(map1, map2):
            for key in map2.keys():
                if map1[key] < map2[key]:
                    return False
            return True
        count1 = defaultdict(int)
        count2 = Counter(word2)
        n = len(word1)
        count = 0
        left = 0
        for right in range(n):
            count1[word1[right]] += 1
            while check(count1, count2):
                count += n - right
                count1[word1[left]] -= 1
                left += 1
        return count
```
['Python3']