FICO Interview Question

How to count numbers of number without using memory space.