h,w,k=gets.split.map &:to_i
s=[]
h.times{s[_1]=gets.chomp}
ans = 0
[0,1].repeated_permutation(h+w) do |z|
  m=s.dup
  cnt=0
  h.times do |i|
    w.times do |j|
      cnt+=1 if m[i][j]=='#' && z[i]==0 && z[h+j]==0
    end
  end
  ans+=1 if cnt==k
end

puts ans
