calcAllGens function

calcAllGens A function to calculate the number of individuals in each generation. This is a supporting function for simulatePedigree.