class InputLine
  def self.to_s
    gets.chomp
  end

  def self.to_i
    InputLine.to_s.to_i
  end
  
  def self.to_f
    InputLine.to_s.to_f
  end

  def self.to_sa
    InputLine.to_s.split(' ')
  end

  def self.to_ia
    InputLine.to_sa.map(&:to_i)
  end
  
  def self.to_fa
    InputLine.to_sa.map(&:to_f)
  end
end

def main(argv)
  (h, w, k) = InputLine.to_ia
  c = [''] * h
  h.times{|y| c[y] = InputLine.to_s}
  
  t = 0
  h.times do |y|
    w.times do |x|
      t += 1 if c[y][x] == '#'
    end
  end

  cols = [0] * h
  rows = [0] * w
  h.times do |y|
    w.times do |x|
      cols[y] += 1 if c[y][x] == '#'
    end
  end
  w.times do |x|
    h.times do |y|
      rows[x] += 1 if c[y][x] == '#'
    end
  end

  m = [h, w].max
  bs = [nil] * (2 ** m)
  bs.size.times do |bits|
    bs[bits] = []
    m.times do |i|
      if bits & (1 << i) != 0 then
        #p [bits, i]
        bs[bits].push(i)
      end
    end
  end

  a = 2 ** h
  b = 2 ** w
  sy = [0] * a
  sx = [0] * b
  a.times do |i|
    bs[i].each{|p| sy[i] += cols[p]}
  end
  b.times do |j|
    bs[j].each{|q| sx[j] += rows[q]}
  end

  count = 0
  a.times do |i|
    b.times do |j|
      s = sy[i] + sx[j]
      bs[i].each do |y|
        bs[j].each do |x|
          s -= 1 if c[y][x] == '#'
        end
      end
      count += 1 if (t - s) == k
    end
  end
  puts count.to_s
end

if self.to_s == 'main' then
  main(ARGV)
end