#include using namespace std; int main() { char c; int n=0,x=0; do { cin >> c; if(c == 'a') { x++; } }while(c != '.'); cout << x << endl; return 0; }