C++ Counting Digits benchmark