H, W, K = gets.split.map(&:to_i)
 
q = Array.new(H) do
  gets.chomp.split('').map{ |v| v == '#' } # . #
end
 
ans = 0
[false, true].repeated_permutation(H) do |h|
  [false, true].repeated_permutation(W) do |w|
    count = 0
    H.times do |i|
      W.times do |j|
        count += 1 if q[i][j] && !h[i] && !w[j]
      end
    end
    ans += 1 if count == K
  end
end
 
puts ans