h, w, k = gets.to_s.split.map{|t|t.to_i}
s = Array.new(h){ gets.to_s.chomp }

ans = 0
[0, 1].repeated_permutation(h+w) do |bit|
  m = s.dup
  cnt = 0
  h.times do |i|
    w.times do |j|
      cnt += 1 if m[i][j] == '#' && bit[i] == 0 && bit[h+j] == 0
    end
  end
  ans += 1 if cnt == k
end

puts ans