In Rocky I they say while he is coming to the ring that he was 40-21, so they added the 10 fight montage in Rocky III + his other wins coming at the end of each movie, and you get his record.