const [head, ...squares] = require('fs').readFileSync('/dev/stdin', 'utf8').split(/\n/)
const [h, w, k] = head.split(/\s/).map(Number)
let result = 0
const rawConditions = createConditions(h), columnConditions = createConditions(w)
for (const rawCondition of rawConditions) {
  for (const columnCondition of columnConditions) {
    let count = 0
    for (let r = 0; r < h; r++) {
      for (let c = 0; c < w; c++) {
        if (squares[r][c] === '#' && !rawCondition.includes(r) && !columnCondition.includes(c)) {
          count += 1
        }
      }
    }
    if (count === k) {
      result += 1
    }
  }
}
console.log(result)

function createConditions(l, result = [[]]) {
  if (l === 0) {
    return result
  }
  l -= 1
  const next = []
  for (const r of result) {
    next.push(r)
    next.push([...r, l])
  }
  return createConditions(l, next)
}