#include <string>
#include <algorithm>
#include <iostream>
#include <cctype>
unsigned countNumbers(const std::string s) {
int (*isdigit)(int) = std::isdigit;
return count_if(s.begin(), s.end(), isdigit);
}
int main(){
std::cout << countNumbers("1234abc251");
}
I2luY2x1ZGUgPHN0cmluZz4KI2luY2x1ZGUgPGFsZ29yaXRobT4KI2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y2N0eXBlPgoKdW5zaWduZWQgY291bnROdW1iZXJzKGNvbnN0IHN0ZDo6c3RyaW5nIHMpIHsKICAgIGludCAoKmlzZGlnaXQpKGludCkgPSBzdGQ6OmlzZGlnaXQ7CiAgICByZXR1cm4gY291bnRfaWYocy5iZWdpbigpLCBzLmVuZCgpLCBpc2RpZ2l0KTsKfQoKaW50IG1haW4oKXsKICAgIHN0ZDo6Y291dCA8PCAgY291bnROdW1iZXJzKCIxMjM0YWJjMjUxIik7Cn0=