How many c section can you have

I just had a baby 10 months ago which was my 3rd c section. I just found out that I’m pregnant and I’m nursing. How many c sections can you have before they will stop? Also if I get a procedure will I have to stop breastfeeding?