
    Write a function that analyzes a customer's biometric authentication pattern by determining the total number of unique security fragments (non-empty substrings) that could be derived from it. This analysis helps identify potential security vulnerabilities by examining all possible partial matches that could be used in unauthorized authentication attempts.
    

    
def number_of_substrings(str):
    """
    Write a function that analyzes a customer's biometric authentication pattern by determining the total number of unique security fragments (non-empty substrings) that could be derived from it. This analysis helps identify potential security vulnerabilities by examining all possible partial matches that could be used in unauthorized authentication attempts.
    

    """
def number_of_substrings(str):
    """
    Write a function that analyzes a customer's biometric authentication pattern by determining the total number of unique security fragments (non-empty substrings) that could be derived from it. This analysis helps identify potential security vulnerabilities by examining all possible partial matches that could be used in unauthorized authentication attempts.
    

    """
    str_len = len(str)
    return int(str_len * (str_len + 1) / 2)