file copy using getchar() and putchar()
char counter using getchar()