#include <stdio.h>
main(){
	FILE *fp;
	int cnt=0;
	char ch;
	fp = fopen("data96.txt","r");

	while(!feof(fp)){
		ch=fgetc(fp);
		if(toupper(ch)=='A') cnt++;
	}
	printf("%i\n", cnt);

	fclose(fp);
}
