h, w, k = gets.split.map(&:to_i)
cs = []
h.times do
  cs << gets.chomp
end

patterns = []
(0...2**(h+w)).each do |x|
  patterns << x.to_s(2).rjust(h+w, "0")
end

ans = 0
patterns.each do |pattern|
  count = 0
  (0..h-1).each do |j|
    (0..w-1).each do |i|
      next if pattern[j] == '1' || pattern[i+h] == '1'

      if cs[j][i] == "#"
        count += 1
      end
    end
  end
  if count == k
    ans += 1
  end
end
puts ans