Looking for help on a For loop.

Need help implementing a “For” loop for counting sign changes for a program using Descartes’s rule of signs.

I think that giving some additional detail as well as what you have already tried in Mathematica would give a potential helper something to work with in giving you advice.