R=range I=input J=lambda:list(map(int,I().split())) N,M=J() S=[I()for i in R(N)] S=[sum((s[j]=='o')<