Change update child_count statement