gets; p readlines.map(&:chomp).join.count("W")