H,W,K = gets.split.map &:to_i
S = $<.read.split
T = S.map {_1.scan(?#).size}
n,C,R = 0, [*0...W], [*0...H]
H.times {|h|
  R.combination(h) {|r|
    s,t = S.dup, T.sum
    r.each {|y| t -= T[y]; s[y] = 0}
    next  if t < K
    W.times {|w|
      C.combination(w) {|c|
        u,v = t,s
        c.each {|x| u -= v.count { _1[x] == ?# } }
        n += 1  if u == K
      }
    }
  }
}
p n