added digit counting to factorial example. trying out converting numbers