/*
char_count.c

A program to count characters of input.
(Type CTRL-D to terminate input.)
*/

#include <stdio.h>

main()
{
int c ;
int count ;

count = 0 ;
while ( ( c = getchar() ) != EOF )
   count ++ ;

printf( "%d characters\n" , count ) ;
}   
