“One of us prays and he does not know how many (Rak’ah) he has prayed.” He said: “The Messenger of Allah ﷺ said: ‘When anyone of you prays and does not know how many he has prayed, let him perform two prostrations while he is sitting.’” (Using translation from Ibn Mājah 1204)
سَأَلْتُ أَبَا سَعِيدٍ الْخُدْرِيِّ قُلْتُ يُصَلِّي أَحَدُنَا فَلَا يَدْرِي كَمْ صَلَّى؟ قَالَ قَالَ رَسُولُ اللهِ ﷺ «إِذَا صَلَّى أَحَدُكُمْ فَلَمْ يَدْرِ كَمْ صَلَّى فَلْيَسْجُدْ سَجْدَتَيْنِ وَهُوَ جَالِسٌ»