I love these old write ups on classic Simpsons episodes. The first 7-8 seasons or so are pure magic and we'll miss John Swartzwelder always.
Assuming ranges are A-B, where A <= B (you could like one season) and A, B are in [1, 28] then there should be just 406 ranges (28 that start at season 1, 27 at 2, etc...).