H,W,K = gets.chomp.split.map(&:to_i)
c = H.times.map{gets.chomp.split("").map(&:to_s)}
ans = 0

(0..2**H-1).each do |t|
  (0..2**W-1).each do |y|
    black = 0
    (0..H-1).each do |i|
      (0..W-1).each do |j|
        if t>>i & 1 == 0 && y>>j & 1 == 0 && c[i][j]=="#"
          black += 1
        end
      end
     end
    if black == K
      ans += 1
    end
  end
end

puts ans

