Hisham bin Urwah (may Allah have mercy on him) narrates from his father (may Allah have mercy on him) that he used to count the verses of the Qur'an in the prayer and keep count of them by knotting his fingers.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 3371