#include<stdio.h>
int main(void)
{
int count,i;
char str[80];
printf("Enter a string:");
i=0;
while((str[i]=getchar())!='
')
i++;
str[i]=' ';
count=0;
for(i=0;str[i]!=' ';i++)
if(str[i]<='9'&&str[i]>='0')
count++;
printf("count=%d
",count);
return 0;
}