Today while praying duhr I doubted whether I prayed 3 or 4 rakas. So I went with the 4, since I thought at the moment that it was more likely to be that.
Though after tasleem I doubted more and wasn’t so sure as I was before that it was 4. So I got up prayed one more rakah and did sujood as sahw.
I am now confused whether or not my prayer is valid or do I have to repeat it.