import java.util.Scanner

import scala.io.StdIn._

object Main extends App {

  val Array(h,w,k) = readLine().split(" ").map(_.toInt)
  val C = Array.fill(h)(readLine().split(""))

  def solve() = {
    var ans = 0L
    for(is <- 0 until 1 << h; js <- 0 until 1 << w) {
      var cnt = 0
      for(i <- 0 until h; j <- 0 until w) {
        if(!isBitOn(is,i) && !isBitOn(js,j) && C(i)(j) == "#") cnt += 1
      }
      if(cnt == k) ans += 1
    }
    ans
  }

  def isBitOn(num: Int, digit: Int): Boolean =
    (num & (1 << digit)) != 0


  println(solve())

}

