Hazrat Sha'bi and Hazrat Sa'id bin Jubair state that if a person finishes the prayer and does not know whether he has prayed an odd or even number of units, then he should repeat the prayer.
Hadith Referenceمصنف ابن ابي شيبه / سجود السهو والعمل في الصلاة / 4487
Hadith Takhrij(مصنف ابن ابي شيبه: ترقيم سعد الشثري 4487، ترقيم محمد عوامة 4456)