H,W,K = gets.chomp.split.map(&:to_i)
C = H.times.map{gets.chomp.split("").map(&:to_s)}

gyo = [0, 1].repeated_permutation(H).to_a
retsu = [0, 1].repeated_permutation(W).to_a
ans = 0

gyo.each do |i|
  sample = Marshal.load(Marshal.dump(C)) 
  (0...H).each do |j|
    if i[j] == 1
      (0...W).each do |k|
        if sample[j][k] == "#"
          sample[j][k] = "."
        end
      end
    end
  end
  retsu.each do |l|
    sample2 = Marshal.load(Marshal.dump(sample)) 
    (0...W).each do |m|
      if l[m] == 1
        (0...H).each do |n|
          if sample2[n][m] == "#"
            sample2[n][m] = "."
          end
        end
      end
    end
    sum = 0
    (0...H).each do |o|
      (0...W).each do |p|
        if sample2[o][p] == "#"
          sum += 1
        end
      end
    end
    if sum == K
      ans += 1
    end
  end
end

puts ans