counting and tracing numbers