I assume you mean pole PIECES rather than POLES. How many poles you have depends on how the rotor and stator are magnetized. More than one pole PIECE will participate in each POLE and the rotor and stator will end up with the same number of poles.
The number of poles may not evenly divide the number of pole pieces on the squirrel-cage rotor, too.
You need to know the number of poles so you know how many magnets to put N up before you switch to putting S up and vice-versa. And you want to leave a gap between the poles, rather than paving the whole rotor with magnets, when you do a conversion. (Note that laying down the magnet next to the gap will be difficult because it will repel its pole-partners and attract the next pole, so it will want to jump into the gap.)
You can figure out the number of poles from the motor RPM and frequency rating. On an induction motor RPM = (1 - slippage) * 60 * Hz / ( 2 * poles ). Slippage is a few percent so the pole count is the even integer just over (RPM * 2) / (Hz * 60).
When you cut the flats for laying your rectangular magnets down, try to space the flats so you can skew the magnets to reduce cogging.