What we DON'T need
Let's start the answer in reverse. Who we can dismiss? Who we don't need to maintain modern technological levels. A good part of humanity if I says so. No offense for anyone.
- Employees of huge companies who provide service to the masses? They can be significantly down-scaled. If functionality, the maintaining of technology instead of profit the purpose, only their engineering team. You can scrap their HR, sales, and so on departments.
- Most services and its workers too - you don't need 20 kind of chips and cars and so on, to maintain modern technology levels.
- Any kind of Media related profession - SCRAP!
- Governmental bodies - Significantly downscaled, based on the situation and type of government.
- Homeless, unemployed, and so on... they don't contribute to modern technology, so they too can be dismissed.
Other factors: Human intellect, productivity, automation
- Automation - we are heading towards a heavily automated world, most mundane task can be or will be replaced by robots.
- Human intellect - Automation means, you can dismiss almost all the heavy-lifters. You will however need highly educated and intelligent people to operate and maintain the machinery.
- Productivity - much depends on the disposition of the people. Are they lazy? Hard-workers? Do you need police to manage big masses of them and so on. This too will affect the final number.
- (It's not PC so I'll edit it out if its offending, but there is a reason Wakanda is fiction, Germany and Japan isn't.)
The final factor is, in this scenario, do all human capable of reaching the same intellectual level? Do they born equal in that regard? Or for example every hundredth people has high enough intellect?
The envisioned technology level of (modern) also changes to final number. Steam-engines are easier to understand than nuclear. A possibly future automation could reach fully automated factories with a few overseer required.
To calculate an accurate number without these factors, is beyond my capability. At guess, a few hundred thousand or million, highly specialized human blessed with great intellectual capability could, in theory, all over the world operate and maintain the necessary machinery to keep it going.