Function that counts the number of offspring (and following generations for each individual in a pedigree.
Useful links