Depends on your neighborhood and how well you reload.
Not to single boom boom out , but once the door has been breached, the type of neighborhood will mean little.
And I would not count much on reloading.
One really has to figure on entertaining a couple of them--gets them in and out more quickly with the loot and lets each of them look out for the other's six.
I would not worry as much about whether ten rounds are adequate as I would about where we will be when the alarm sounds, and where the gun will be.
It's not a matter of an preparing for an extended engagement. It's a matter of dissuading or slowing entry, and dealing with it timely should it happen.
The are are some good books on home defense. Start there. And start with wings like reinforced door frames, and river gravel under the windows, an thorny bushes out there.
Ten rounds? I have eight--on me. Should the apocalypse happen at night, there is another gun there. but there is no guarantee of that. On the other hide, I would be in a safer place than if they were to catch me in the kitchen, because I will be in a defensive option. You won't find me traipsing around looking for intruders.
One other thing. You really do not want to fire
anything indoors, but given a choice, I would use a .45 ACP over a high performance 9MM--the sound pressure is lower.
Good luck!