object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val h, w, k = sc.nextInt()
  val c = Array.fill(h)(sc.next().map(_ == '#'))

  var ans = 0

  for {
    is <- 0 until 1 << h
    js <- 0 until 1 << w
  } {
    val d = Array.tabulate(h, w){case (i, j) => c(i)(j)}
    for (i <- 0 until h if ((is >> i) & 1) == 1) {
      for (j <- 0 until w) {
        d(i)(j) = false
      }
    }
    for (j <- 0 until w if ((js >> j) & 1) == 1) {
      for (i <- 0 until h) {
        d(i)(j) = false
      }
    }
    if (d.map(_.count(_ == true)).sum == k) {
      ans += 1
    }
  }

  println(ans)
}
