Forgetting how many rakaats one performed
Q:
1. I usually take the least number of rakaats when I totaly get confused in the number of rakaats of salaah and complete my salaah. I don't sit for tashahud in every rakaat in this case but I do sajda e sahw in the end after reciting tashahud by saying salaam to the right side and then two prostration of forgetfulness and again tashahud then durood and dua and then salaam to right and left. Is this the right way?
2. If not, what is the ruling on my previous salaah?
3. If it is wrong what is the right procedure?