#include <stdio.h>
#include <ctype.h>

void main(void)
{
  int c;
  int count;

  count = 0;
  c = getchar();
  while (c != EOF)
  {
    if (toupper(c) == 'A') count++;
    c = getchar();
  }
  printf("The count is: %d\n", count);
}
