/*
 * Problem 1-8
 * Write a program to count blanks, tabs, and newlines.
 * Copyright (c) 1998 by John Weber.  All rights reserved.
 */
#include <stdio.h>

int main(void)
{
	char c;
	int count = 0;

	while( (c = getchar()) != EOF ) {
		if( (c == '\t') || (c == ' ') || (c == '\n') ) {
			count++;
		}
	}
	printf("Number of blanks, tabs, and newlines = %d\n",count);
	return 0;
}
