char buff[LENGTH];scanf("%s". buff);size_t count = 0;for (size_t i = 0; buff[i]; ++i) { if (isdigit(buff[i])) { ++count; }}