More robust method of determining how many seasons there are.