#include /* count characters from the input */ main() { int nc = 0; while (getchar() != EOF) ++nc; printf("%d\n", nc); }