<garvit244>673_1.py
def findNumberOfLIS( nums):
    length = [1]*len(nums)
    count = [1]*len(nums)
    result = 0
    for end, num in enumerate(nums):
        for start in range(end):
            if num > nums[start]:
                if length[start] >= length[end]:
                    length[end] = 1+length[start]
                    count[end] = count[start]
                elif length[start] + 1 == length[end]:
                    count[end] += count[start]
    for index, max_subs in enumerate(count):
        if length[index] == max(length):
            result += max_subs
    return result
def sample_funcname ( var_0 ) :
    var_3 = [ 1 ] * len ( var_0 )
    var_4 = [ 1 ] * len ( var_0 )
    var_6 = 0
    for var_8 , var_9 in enumerate ( var_0 ) :
        for var_11 in range ( var_8 ) :
            if var_9 > var_0 [ var_11 ] :
                if var_3 [ var_11 ] >= var_3 [ var_8 ] :
                    var_3 [ var_8 ] = 1 + var_3 [ var_11 ]
                    var_4 [ var_8 ] = var_4 [ var_11 ]
                elif var_3 [ var_11 ] + 1 == var_3 [ var_8 ] :
                    var_4 [ var_8 ] += var_4 [ var_11 ]
    for var_12 , var_13 in enumerate ( var_4 ) :
        if var_3 [ var_12 ] == max ( var_3 ) :
            var_6 += var_13
    return var_6
