What is the ruling if for example you had doubt if it was your first or seconds sajdah and you could not make up your mind so you treated it as your first as per ruling but in the following rakat your dhaan tells you it was 2nd sajdah so now you have a strong feeling you did 3 sujood

If you are doubtful, ignore the doubt as the time has passed, if you are certain that you have made an extra sajdah then continue prayers and do sajdata al sahw after completion of the prayers.