Must be different in England / Wales, here in Scotland the CPH number goes with the land (Country Parish Holding - how can it not?). The seller is suppose to notify RPID but there's a form on line to fill in to notify them.
I"m pretty certain you'll get new herd / flock numbers though since they belong to the keeper not the land.