rt,从来没有写过模拟qwq
#include <bits/stdc++.h>
using namespace std;
int n, k, ans;
string st;
int main() {
cin >> n, getchar();
for (int i = 1; i <= n; i ++) {
getline(cin, st), k = 0;
while (st[k] == ' ' && k < st.size()) k ++;
if (k == st.size() - 1) continue;
if (st[k] != '#' || st[k + 1] != ' ') continue;
k ++;
while (st[k] == ' ' && k < st.size()) k ++;
if (k == st.size() - 1) continue;
ans ++;
}
cout << ans << '\n';
return 0;
}