H,W,K = gets.split.map(&:to_i)
C = readlines.map {|s| s.chomp.chars.map {|c| c == "#" } }

ans = 0
(1<<H).times do |hi|
  (1<<W).times do |wi|
    cnt = 0
    H.times do |hj|
      next if (hi>>hj)&1 == 1
      W.times do |wj|
        next if (wi>>wj)&1 == 1
        cnt += 1 if C[hj][wj]
      end
    end
    ans += 1 if cnt == K
  end
end
puts ans