require 'numo/narray'
include Numo

h, w, k = gets.split.map(&:to_i)
rows = Array.new(h){gets.chomp.chars.map{|c| (c == '#') ? 1 : 0}}
cnt = 0
[0, 1].repeated_permutation(h).each do |x|
  m = Int32[*rows.dup]
  x.each_with_index do |y, i|
    m[i, true] = 0 if y == 1
  end
  [0, 1].repeated_permutation(w) do |u|
    mc = Marshal.load(Marshal.dump(m))
    u.each_with_index do |v, l|
      mc[true, l] = 0 if v == 1
    end
    cnt += 1 if mc.to_a.flatten.sum == k
  end
end
puts cnt