Solution to count num of digits w/in int