H, W, K = gets.split.map(&:to_i)

Ary = readlines.map(&:chomp!)
ans = 0
all = 0
Ary.each do |line|
  all += line.count("#")
end

h = "1" * H
w = "1" * W

(0..(h.to_i(2))).each do |h_choice|
  (0..(w.to_i(2))).each do |w_choice|
    h_string = h_choice.to_s(2)
    w_string = w_choice.to_s(2)
    if h_string.size < H
      h_string = '0' * (H - h_string.size) + h_string
    end

    if w_string.size < W
      w_string = '0' * (W - w_string.size) + w_string
    end

    ary = Ary.dup
    h_kesi = 0
    w_kesi = 0
    h_string.each_char.with_index do |c, i|
      if c == '1'
        h_kesi += ary[i].count("#")
        ary[i] = 'R' * W
      end
    end

    w_string.each_char.with_index do |c, i|
      if c == '1'
        ary.each do |line|
          w_kesi += 1 if line[i] == '#'
        end
      end
    end

    if all - h_kesi - w_kesi == K
      ans += 1
    end
  end
end

puts ans
