Partitions and the sequence counting problem in economic lot scheduling