Advice by Ruchi is practical.
You might have stayed with the company for reasons best known to you or may be it suits your temperament.
Although one should stay with a company for a reasonable good period of time,switching companies does not necessarily make candidate a rolling stone. It is also a fact that rolling stone has more mass. Many of the executives have crossed floors by changing companies. Aim to be with best of the employers with good HR practices.
Companies do not marry employees and employees should not marry the company.
Before you change find about the new employer, company, team discreetly and make your own assessment. Negotiate the benefits and package to the maximum and work passionately and deliver results. You shall be known in the market and trade with the results you deliver. Good performers are handpicked by recruiters. Your qualification, experience, performance can take you to places.