#include <bits/stdc++.h>
int main(void) {
  int N;
  scanf("%d", &N);
  char S[N];
  scanf("%s", S);
  int b = 0, w = 0;
  for (int i = 0; i < N; i++) {
    if (S[i] == '.') {
      w++;
    } else {
      b++;
    }
  }
  if (b == 0) {
    printf("0\n");
  } else {
    printf("%d\n", b);
  }
  return 0;
}
