Simpler number length calculation