#include <stdio.h>

/* count characters in input;  */
main()
{
      long nc;

      nc = 0;
      while (getchar() != EOF)
            ++nc;
      printf("%ld\n", nc);
}

/*
Discuss:

- ++, --, post-/pre-
- change long to double, printf( "%.0f...
         for (nc = 0; getchar() != EOF; ++nc)
            ;
    empty loop body

*/