H, W, K = gets.chomp.split().map(&:to_i)
cells = []
gyou = Hash.new(0)
retu = Hash.new(0)
total = 0

H.times do |h|
  c = gets.chomp.split('')
  cells << c
  gyou[h.to_s] += c.count {|s| s == '#'}
  total += gyou[h.to_s]
end
W.times do |w|
  H.times do |h|
    if cells[h][w] == '#'
      retu[w.to_s] += 1
    end
  end
end

cnt = 0
[0, 1].repeated_permutation(H).to_a.each do |gyou_bit|
  [0, 1].repeated_permutation(W).to_a.each do |retu_bit|
    d_total = total.dup
    gyou_bit_ind = gyou_bit.each_index.select{|i| gyou_bit[i] == 1}
    retu_bit_ind = retu_bit.each_index.select{|i| retu_bit[i] == 1}
    gyou_bit_ind.each do |i|
      d_total -= gyou[i.to_s]
      next if retu_bit_ind.empty?
      retu_bit_ind.each do |j|
        d_total += 1 if cells[i][j] == "#"
      end
    end
    retu_bit_ind.each do |j|
      d_total -= retu[j.to_s]
    end
    cnt += 1 if d_total == K
  end
end

puts cnt
