FICO interview question

How to count numbers of number without using memory space.