#include<stdio.h> int main() { char a[1000];int n=0; while(scanf("%s",a)!=EOF) { n++; } printf("%d",n); }
Double click to view unformatted code.