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

hh = (0...h).to_a
ww = (0...w).to_a

hc = []
(0..h).each do |n|
  hc.concat(hh.combination(n).to_a)
end

wc = []
(0..w).each do |n|
  wc.concat(ww.combination(n).to_a)
end

ans = 0
hc.each do |hci|
  wc.each do |wci|
    tmp = Marshal.load(Marshal.dump(c))
    hci.each do |hi|
      w.times {|wi| tmp[hi][wi] = '.'}
    end
    wci.each do |wi|
      h.times {|hi| tmp[hi][wi] = '.'}
    end
    ans += 1 if tmp.flatten.count('#') == k
  end
end
puts ans
