H, W, K = gets.chomp.split(" ").map(&:to_i)
C = []
H.times do
    C << gets.chomp.split("")
end

hp = []
H.times do |h|
    hp << (0..H-1).to_a.combination(h+1).to_a
end

wp = []
W.times do |w|
    wp << (0..W-1).to_a.combination(w+1).to_a
end

hp.flatten!(1)
wp.flatten!(1)
hp << []
wp << []

def nuri(c, hh, ww)
    (0..c.size-1).each do |y|
        (0..c[y].size-1).each do |x|
            if hh.include?(y) || ww.include?(x) then
                c[y][x] = "."
            end
        end
    end
    c
end

def cnt(c)
    cnt = 0
     (0..c.size-1).each do |y|
        (0..c[y].size-1).each do |x|
            cnt += 1 if (c[y][x] == "#")
        end
    end
    cnt
end

result = 0
hp.each do |hh|
    wp.each do |ww|
        c = nuri(Marshal.load(Marshal.dump(C.clone)), hh, ww)
        result += 1 if cnt(c) == K
    end
end

puts result