added function to count kids