CREATE TABLE table_name_18 (year VARCHAR(255), record VARCHAR(255))
Name the total number of years for a 39-31 record
    
SQL: SELECT COUNT(year) FROM table_name_18 WHERE record = "39-31"