#include <stdio.h>
int numbers(char * str)
{
int i = -1;
while(str[++i]);
return i;
}
int main(void)
{
char ch[1000];
printf("enter a string:");
scanf("%s",ch);
printf("count of string is: %d\n",numbers(ch));
return 0;
}