h, w, k = gets.split.map(&:to_i)

a = Array.new(h)
for i in 0...h
    a[i] = gets.chomp.chars
end

sum = 0
r = Array.new(h, 0)
c = Array.new(w, 0)
for i in 0...h
    for j in 0...w
        if a[i][j] == '#'
            r[i] += 1
            c[j] += 1
            sum += 1
        end
    end
end

ans = 0
for y in 0...(1<<h)
    for x in 0...(1<<w)
        t = 0
        #b = a.clone
        b = Marshal.load(Marshal.dump(a))
        for i in 0...h
            for j in 0...w
                b[i][j] = '-' if (((y & (1 << i)) != 0) || ((x & (1 << j)) != 0))
            end
        end

        for i in 0...h
            for j in 0...w
                if b[i][j] == '#'
                    t += 1
                end
            end
        end
        if t == k
            ans += 1
        end
    end
end

puts ans