H, W, K = gets.chomp.split.map(&:to_i)
c = []
H.times do
  c.push gets.chomp.each_char.to_a
end

count = 0
(0..H).each{ |h|
  (0..(H-1)).to_a.combination(h).each{ |his|
    (0..W).each{ |w|
      (0..(W-1)).to_a.combination(w).each{ |wis|
        a = c.select.with_index{ |eh,ih|
          ! his.include?(ih)
        }.map{ |ch|
          ch.select.with_index{ |ew,iw|
            ! wis.include?(iw)
          }
        }
        if a.flatten(2).select{|e| e == "#"}.size == K
          count += 1
        end
      }
    }
  }
}

puts count
