h,w,k = gets.chomp.split(" ").map(&:to_i)
m = []
h.times do |i|
  tmp = []
  tmp = gets.chomp.split("")
  m << tmp
end

#p m[0][1]

bi = 0
bj = 0
bh = Array.new(h,0)
bw = Array.new(w,0)
ball = 0
m.each do |es|
  bj = 0
  es.each do |e|
    if e == "#"
      bh[bi] += 1
      bw[bj] += 1
      ball += 1
    end
    bj += 1
  end
  bi += 1
end

#p bh
#p bw
#p ball

ans = 0

(0..h).each do |i|
  if i == 0
    (0..w).each do |j|
      if j == 0
        if ball == k
          ans += 1
        end
      else
        (1..w).to_a.combination(j).each do |fs|
          tmp = ball
          fs.each do |f|
            tmp -= bw[f-1]
          end
          #p "H "+tmp.to_s
          if tmp == k
            ans += 1
          end
        end
      end
    end
  else
    (1..h).to_a.combination(i).each do |es|
      (0..w).each do |j|
        if j == 0
          tmp = ball
          es.each do |e|
            tmp -= bh[e-1]
          end
          if tmp == k
            ans += 1
          end
          #p "W "+tmp.to_s
        else
          (1..w).to_a.combination(j).each do |fs|
            tmp = ball
            es.each do |e|
              w.times do |ii|
                if m[e-1][ii] == "#"
                  tmp -= 1
                end
              end
            end
            fs.each do |f|
              h.times do |jj|
                if m[jj][f-1] == "#"
                  tmp -= 1
                end
              end
            end
            es.each do |e|
              fs.each do |f|
                if m[e-1][f-1] == "#"
                  tmp += 1
                end
              end
            end
            if tmp == k
              ans += 1
            end
            #p tmp
          end
        end
      end
    end
  end
end

p ans