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

bc = 0 # 黒の数
tmpc = []
$c = []
# col = []
# col = col.fill(0, 0..H-1)
# row = []
# row = row.fill(0, 0..W-1)

H.times do |i|
  tmpc[i] = gets.chomp.split("")
  $c[i] = tmpc[i].map{ |x| (x=='#') ? 1 :0 }
  bc +=  $c[i].inject(:+)
end

# puts "#{$c}"
# tc = $c.transpose
# W.times do |j|
#   row[j] = tc[j].inject(:+)
# end

# bit全探索
n = H+W
ans = 0
(1 << n).times do |i|
  cnt = bc
  n.times do |j|
    cc = Marshal.load(Marshal.dump($c))
    if i[j] == 1 and j < H
      W.times do |k|
        if cc[j][k] == 1
          cc[j][k] = 0
          cnt -= 1
        end
      end
    elsif i[j] == 1 and j >= H
      H.times do |k|
        if cc[k][j] == 1
          cc[k][j] = 1
          cnt -= 1
        end
      end
    end
  end

  if cnt == K
    ans += 1
  end 
  
end

puts ans