how many times can we apply for h1 within US

How many times can we apply for h1 b visa?

if a valid h1 b visa expires and shall we can apply for new one by staying in US itself?or should we travel back to india and stay for an one year ?and again go for visa stamping process?

You can apply while continuing to stay in US. There is no limit on number of petitions that can be applied. However, a person can stay at most for 6 years inside US on H-1 unless they have a pending green card application.

As for stamping, you need visa stamp only when you are entering US. So if you continue to stay in US, then no visa stamp is required. It will be required once it has expired and you travel outside of US next.