added method to get the number of stepped generations