object Main {
  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)

    val H, W, K = sc.nextInt()
    val mat = Array.fill(H)(sc.next)

    def chk(h: Int, w: Int): Boolean = {
      (for {
        i <- 0 until H
        j <- 0 until W
        if ((1 << i) & h) == 0 && ((1 << j) & w) == 0
      } yield if (mat(i).charAt(j) == '#') 1 else 0).sum == K
    }

    println((for{
      i <- 0 until (1 << H)
      j <- 0 until (1 << W)
    } yield chk(i, j)).count(_ == true))
  }
}
