H, W, k = gets.split.map(&:to_i)
c = H.times.map {|_| gets.chomp.split("")}

ans = 0
(0...H).each do |h|
  (0...H).to_a.combination(h).to_a.each do |columns|
    cc = Marshal.load(Marshal.dump(c))
    columns.each do |i|
      (0...W).each do |j|
        cc[i][j] = "r"
      end
    end
    (0...W).each do |w|
      (0...W).to_a.combination(w).to_a.each do |rows|
        ccc = Marshal.load(Marshal.dump(cc))
        rows.each do |j|
          (0...H).each do |i|
            ccc[i][j] = "r"
          end
        end
        ans += 1 if ccc.flatten.grep(/#/).length == k
      end
    end
  end
end

p ans