Documentation updates.
Adding digits counting functions.