//C++
int count(int num) {
int counter = 0;
while (num > 0) {
counter++;
num /= 10;
}
return counter;
//C++
int count(int num) {
int counter = 0;
while (num > 0) {
counter++;
num /= 10;
}
return counter;
}