H, W, K = gets.split.map(&:to_i)
arr = []
ans = 0
blk = 0
H.times do |i|
	tmp = gets.chomp.to_s
	tmp = tmp.split("")
	arr << tmp
end

tmp = Marshal.load(Marshal.dump(arr))
blk = 0


h = []
w = []
[0, 1].repeated_permutation(H) do |bit|
	h << bit
end
[0, 1].repeated_permutation(W) do |bit|
	w << bit
end
(h.length).times do |m|
	(w.length).times do |n|
		(h[m].length).times do |s|
			if h[m][s] == 1
				tmp[s].fill("*")
			end
		end
		(w[n].length).times do |o|
			if w[n][o] == 1
				H.times do |p|
					tmp[p][o] = "*"
				end
			end
		end
		H.times do |n|
			blk += tmp[n].count("#")
		end
		if blk == K
			ans += 1
		end
		tmp = Marshal.load(Marshal.dump(arr))
		blk = 0
	end
end

p ans