changed period display to show total number of periods