counting digits