The usual issue is not the overall amount of gut bacteria, but the composition. While bowel surgery can disrupt the composition of your gut flora, it need not have to, and if there was no major accompanying lifestyle changes, it's possible it eventually returned to equilibrium.