H,W,K = gets.split.map &:to_i

C = H.times.map{ gets.chomp.chars.map{ _1=="#"}}

ans = 0
(2**H).times do |h|
    rows = H.times.select{|i| (h & 1<<i)==0}.map{C[_1]}
    next if rows.empty?

    (2**W).times do |w|
        idxs = W.times.select{|i| (w & 1<<i)!=0}
        next if idxs.empty?

        ans += 1 if K == rows.sum{|row| idxs.select{row[_1]}.count }
    end
end

p ans