small digcnt code