#include <stdio.h>
#include <string.h>

void countWord(FILE *fp, int *count)
{
  char word[100];
  if (fscanf(fp, "%s", word) == EOF)
    return;
  if (strlen(word) >= 2)
    (*count)++;
  countWord(fp, count);
}

int main()
{
  FILE *fp;
  int count;
  
  fp = fopen("a.doc", "r");
  countWord(fp, &count);
  fclose(fp);
  
  printf("%d\n", count);
  
  return 0;
}
