I used to be weirdly good at memorizing numbers when I was a kid too, but that ability faded for some reason as I got older. Not sure how sudden of a loss it was for you, but perhaps your memory might've changed somewhat anyway as you got older, even if you hadn't had the surgery?