h, w, k = gets.split.map(&:to_i)
c = Array.new(h) { gets.chomp }
count = 0

(2**h).times do |b1|
  tmp = []

  format("%0#{h}d", b1.to_s(2)).each_char.with_index do |e, idx|
    tmp << c[idx] if e == '1'
  end

  dump = Marshal.dump(tmp)

  (2**w).times do |b2|
    m = Marshal.load(dump)

    format("%0#{w}d", b2.to_s(2)).each_char.with_index do |e, idx|
      m.each { |l| l[idx] = 'r' } if e == '1'
    end

    count += 1 if m.map { |e| e.count('#') }.sum == k
  end
end

puts count