In the original scenario, suppose that instead of 976 registered dogs in the city, there were actually 976 - 465 dogs. How many dogs were registered in the city before the recent pet adoption event and before any dogs moved away?