Determining Integer Digit Count in C++