class Problem
  attr_accessor *(?a..?z).to_a.map(&:to_sym)
  def initialize
    @h,@w,@k = gets.to_s.split.map{ |v| v.to_i }
    @c = Array.new(h){ gets.chomp }
  end

  def solve
    ans = 0
    (1<<h).times do |mask_y|
      (1<<w).times do |mask_x|
        cnt = 0
        h.times do |y|
          w.times do |x|
            next if c[y][x] == "."
            next if (mask_y >> y) & 1 == 1
            next if (mask_x >> x) & 1 == 1
            cnt += 1
          end
        end
        ans += 1 if cnt == k
      end
    end
    ans
  end

  def show(ans)
    puts ans
  end
end

Problem.new.instance_eval do
  show(solve)
end