return number of epochs