Al-A'mash narrates by way of Ibrahim al-Nakha'i (may Allah have mercy on him) that he used to count the verses in the prayer and keep count of them by knotting his fingers.