def get_int_array
    gets.strip.split(' ').map(&:to_i)
end

h,w,k = get_int_array
input = h.times.map{|r| gets.strip }

tr = [1,2,4,8,16,32,64][0,h]
tc = [1,2,4,8,16,32,64][0,w]

pattern = 0
(2 ** h).times{|i|
    (2 ** w).times{|j|
        count = 0
        tr.each_with_index{|r, ri|
            if (i & r) > 0
                tc.each_with_index{|c, ci|
                    if (j & c) > 0
                        count += 1 if input[ri][ci] == '#'
                    end
                }
            end
        }
        pattern += 1 if count == k
    }
}

puts pattern