Conensed into separate methods, added summation of replicate counts, added replicate incrementation, added while loop to iterate over counting while remaining amount to count is greater than 0.