Imran bin Hudayr used to count the verses within the prayer. Abu Mijlaz also declared it permissible.