Reading about power analysis in any experiment design textbook might answer your question. But here's the general idea: You have a few unknowns relating to power
- Variance
- Sample size
- p-value
So you try to guess what the unknowns are.
- Run a pilot study so that you can guess what the variance would be.
- Choose alpha.
- I feel like I missed one of the unknowns. If I did, you figure that out to.
- Do the statistical computations in reverse to solve for sample-size. You can also generate random data based on the variance and different sample sizes and then run the statistical computations the normal way, but the analytical approach will probably be easier for the simple design that you have.
And you can of course graph this so you get an idea of how robust your decision is to variations in the variance.