#include <cstdio>

int main()
{
	int r = 0;
	char c;
	int n;

	scanf_s("%d\n", &n);

	while ((c = getchar()) != 'EOF' && c != '#' && c != '\n') {}

	if (c == 'EOF' || c == '\n') {
		printf("0");
		return 0;
	}

	while ((c = getchar()) != 'EOF' && c != '\n') {
		if (c == '.') { r++; }
	}
	printf("%d\n", r);
	return 0;
}