H, W, K = gets.chomp.split.map(&:to_i)

mas = []

H.times do 
  mas << gets.chomp
end

ans = 0
(2**H).times do |h_bit|
  (2**W).times do |w_bit|
    h_bit_bool = h_bit.to_s(2).chars.map(&:to_i).reverse
    h_bit_bool += [0] * (H - h_bit_bool.size)
    w_bit_bool = w_bit.to_s(2).chars.map(&:to_i).reverse
    w_bit_bool += [0] * (W - w_bit_bool.size)
    ct = 0
    H.times do |h|
      W.times do |w|
        ct += 1 if h_bit_bool[h] == 1 && w_bit_bool[w] == 1 && mas[h][w] == "#"
      end
    end
    ans += 1 if ct == K
  end
end 

puts ans
