Should this be "counts the digits"? Nobody really counts units (km, sec, etc.) unless they're units of a workbook.
There are many meanings for “units” (and aonaid) beyond “standardized measurements”; for example, it could mean “items sold individually at retail”.
Ah, good explanation! Thank you.