H, W, K = gets.chomp.split(' ').map(&:to_i)
ary = []
H.times { ary.push(gets.chomp.split('')) }

# nBlack = 0
# ary.each { |row| nBlack += row.count("#") }

ans = 0

0.upto(H) do |h|
    ary.combination(h).each do |sAry|
        remainingAry = ary - sAry
        0.upto(W) do |w|
            [*0..(W - 1)].combination(w).each do |w2|
                nBlack = 0
                if w2 == nil then
                    remainingAry.each { |row| nBlack += row.count("#") }
                else
                    w2.each do |i|
                        sAry.each do |ssAry|
                            nBlack += 1 if ssAry[i] == "#"
                        end
                    end
                end
                ans += 1 if nBlack == K
            end
        end
    end
end

puts ans