It depends on your team and on you as a teacher. For most high school teams the answer is fewer than coaches think. Pick a couple of basic formations, like horns, box or 1-4, and execute from there.
Some teams are not as good at executing sets, and that is fine. It is better to pick a few that you can use in a close game than to have a bunch that no one knows. When the game is tight, your players need to know exactly where to go.
Older, more experienced teams can take more. A young team can take more too, if you are patient with it. You put a set in, and it might take two years, but eventually they will get it. Every team is different, and there are different levels inside high school as well, so what works for one roster will not work for the next.
Be honest about the teaching side too. How good are you at teaching offensive sets? A set only helps you if you can get it across to your players, so if you are not sure, run fewer and teach them well.
So start small. Teach a couple of formations, run your offense from them, and add more only when your players can run what they already have.
More Offense questions
Free playbook
Get the free flex offense playbook
Every flex cut, starting set, counter, special and drill, with all 30 diagrams, in one printable PDF.