Get count of all possible numbers of length " n " starting with digit 0 , 1 , 2 , ... , 9
totalCount = 0 NEW_LINE for i in range ( 10 ) : NEW_LINE INDENT totalCount += count [ i ] [ n ] NEW_LINE DEDENT return totalCount NEW_LINE