h,w,k = gets.chomp.split(" ").map(&:to_i)
c = Array.new(h).map{Array.new}
h.times do |i|
  c[i] = gets.chomp
end
ans = 0
[0, 1].repeated_permutation(h+w) do |bits|
  sub = Array.new(h).map{Array.new}
  h.times do |i|
    sub[i] = "" + c[i]
  end
  h.times do |i|
    if bits[i] == 1
      for j in 0..w-1
        sub[i][j] = "."
      end
    end
  end
  w.times do |i|
    if bits[h+i] == 1
      for j in 0..h-1
        sub[j][i] = "."
      end
    end
  end
  black = 0
  h.times do |i|
    black += sub[i].count("#")
  end
  ans += 1 if black == k
end
puts ans