#include using namespace std; #define int long long #define rep(i,n) for(int i=0; i>n>>m; vector> p(n), other(n); bitset<100> mask, exist; rep(i, m) mask[i]=1; rep(i, n) { string s; cin>>s; rep(j, m) p[i][j]=s[j]=='o'; } rep(i, n) { exist|=p[i]; rep(j, n) { if(i==j) continue; other[i]|=p[j]; } } int res=0; rep(i, n) { if(p[i].count()&&p[i]==(~other[i]&exist&mask)) res++; } cout<