make child_count transactional