When dog's teeth are bad..they pull out very easily...like pulling a sliver. If they are good, they are very very difficult to pull.
So if the vet took 22 of them, that really is what needed to be done. She probably had a low grade infection from all the rotten teeth too, if so, I bet once her body is clear of that she'll have a lot more energy and feel So much better.
She'll have a little bit of a learning curve in figuring out how to eat with what she has left for teeth, but she should be ok.
I had a little dog that, while she didn't loose all her teeth at once, she pretty much lost all her teeth by the time she was a few years near to her end of days.
One thing that did happen though, that you might be aware of. Du to my dog, Shilo's last round of bad teeth, the pain that came from eating...then...she had those teeth removed...but an abscess developed in her mouth -- she became fearful of eating...associated food with pain.
I tried everything under the sun to get her to eat again, but canned dog food, dry soaked-in-water to soften it dog food, even canned cat food, she wouldn't have anything to do with it..because of mouth pain. Later when her mouth healed she still had an aversion to those foods I tried to use to get her to eat when she was hurting. I tried hamburger, cooked and raw, eggs, and everything I could think of...but the only thing that worked was cooked chicken.
I would take a chicken breast, cook it in the microwave on a plate with water. Then when cooked, pull it out, use forks to shred the hot chicken so it would cool faster, take the hot chicken flavored water and pour it over baby rice cereal...along with some cool water. I added a little bit of butter to the mix and some doggy vitamins...then squished in the shredded chicken breast into the mix.
Even then, sometimes, I would have to put a little in her mouth to get her to taste it and get her interested in eating. I asked my vet about the meals that I cooked for her, and she thought it was ok, being the dog was at least eating. I figured I had a carb with the baby rice cereal, a protein with the chicken and a little fat with the butter...which also added a little flavor. (this was real butter too, no margarine) - also, as mentioned, I didn't use very much butter...I wasn't sure if it was good for her digestion or not. Turns out, dogs don't need a lot of fat anyways.
But it kept her healthy and alive for a few more years.
I hope you doggy heals up fine without the issues mine did when she had her last round of teeth taken...which if I remember correctly was like 8 of them.
Stormy