H, W, K = gets.split.map(&:to_i)
C = H.times.map { gets.chomp.split("") }

ans = 0
hs = 0.upto(H-1).to_a
ws = 0.upto(W-1).to_a
0.upto(H-1) do |i|
  hs.combination(i).each do |h_comb|
    0.upto(W-1) do |j|
      ws.combination(j).each do |w_comb|
        c = C.map(&:dup)
        h_comb.each do |h|
          c[h] = c[h].map { nil }
        end
        w_comb.each do |w|
          H.times do |ii|
            c[ii][w] = nil
          end
        end
        tmp = 0
        H.times do |i|
          W.times do |j|
            tmp += 1 if c[i][j] == "#"
          end
        end
        ans += 1 if K == tmp
      end
    end
  end
end

puts(ans)
