H,W,K = gets.split.map(&:to_i)
cc = H.times.map { gets.chomp!.chars }

ans = 0
(1 << H).times do |is|
  (1 << W).times do |js|
    cnt = 0
    H.times do |i|
      W.times do |j|
        next if is >> i & 1 == 1
        next if js >> j & 1 == 1
        cnt += 1 if cc[i][j] == '#'
      end
    end

    ans += 1 if cnt == K
  end
end

puts ans
