If you felt that most likely you have prayed three Rakah, your prayer is valid! But if you were totally confused and was not sure or didn’t have any inclination, you must add another Rakah.
If you felt that most likely you have prayed three Rakah, your prayer is valid! But if you were totally confused and was not sure or didn’t have any inclination, you must add another Rakah.