>>369
int countnum(char s[])
{
int cnt=0;
while( *s!=NULL ) {
if( *s>='0' && *s<='9' ) cnt++;
s++;
}
return cnt;
}