A UPS system isn't designed to supply power in the same terms as a generator. You'll kill the batteries after the first few months of use.
The number of PC's you could run off the UPS would heavily depend on the system and what wattage they use.
What you will need is a UPS and an Automatically Started Generator.
The UPS should only provide power while the generator cranks.
What country are you in? You will not be able to install this yourself, you'll need a licensed electrician.