
    In a banking fraud detection system, analyze transaction IDs to identify suspicious patterns by finding the count of consecutive digit sequences where the sum of the digits equals the length of the sequence. Each such pattern in the transaction ID could indicate a potential fraudulent transaction signature that needs further investigation.
    

    
from collections import defaultdict

def count_Substrings(s):
    """
    In a banking fraud detection system, analyze transaction IDs to identify suspicious patterns by finding the count of consecutive digit sequences where the sum of the digits equals the length of the sequence. Each such pattern in the transaction ID could indicate a potential fraudulent transaction signature that needs further investigation.
    

    """
from collections import defaultdict

def count_Substrings(s):
    """
    In a banking fraud detection system, analyze transaction IDs to identify suspicious patterns by finding the count of consecutive digit sequences where the sum of the digits equals the length of the sequence. Each such pattern in the transaction ID could indicate a potential fraudulent transaction signature that needs further investigation.
    

    """
    n = len(s)
    (count, sum) = (0, 0)
    mp = defaultdict(lambda : 0)
    mp[0] += 1
    for i in range(n):
        sum += ord(s[i]) - ord('0')
        count += mp[sum - (i + 1)]
        mp[sum - (i + 1)] += 1
    return count