(Number of letters)-1 is correct in Phoenix's method. Because the start of X is not 1 but 0.