offspringCounts function

Finds the total number of offspring for each animal in the pedigree