H, W, K = gets.split.map(&:to_i)
Css = Array.new(H) { gets.chomp.split('') }

Tss = Array.new(H) { Array.new(W)}


def count_black(skip_rows=[], skip_cols=[])
  counter = 0
  H.times do |i|
    next if skip_rows.include?(i)
    W.times do |j|
      next if skip_cols.include?(j)
      counter += 1 if Css[i][j] == "#"
    end
  end
  counter
end

def hairetu(array, num)
  (1..num).map do |i|
    array.combination(i).to_a.first
  end
end

def solve
  counter = 0
  hh = (0...H).to_a
  ww = (0...W).to_a
  H.times do |i|
    W.times do |j|
      skip_rows = hairetu(hh, i+1).first
      skip_cols = hairetu(ww, j+1).first
      black_counter = count_black(skip_rows, skip_cols)
      counter += 1 if black_counter == K
      puts "i = #{i}, j = #{j}, counter=#{counter}, black_counter=#{black_counter}, skip_rows=#{skip_rows}, skip_rows=#{skip_cols}"
    end
  end
  counter
end

ans = solve

puts ans