import java.util.Scanner

import scala.collection.mutable.ArrayBuffer

object Main {

  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val h = sc.nextInt()
    val w = sc.nextInt()
    val k = sc.nextInt()

    val sq = Array.fill(h)(sc.next().split("").filter(_ != "").map(_ == "#")).flatten

    val wps = powerSet((0 until w).toList)
    val hps = powerSet((0 until h).toList)

    var ans = 0

    wps.foreach { wl =>
      val wp = wl.flatMap(wi => (0 until h).map(i => w * i + wi))
      hps.foreach { hl =>
        val hp = hl.flatMap(hi => (0 until w).map(i => i + hi * w))
        val po = (wp ++ hp).toSet

        var cnt = 0
        (0 until h * w).foreach(i => if (sq(i) && !po.contains(i)) cnt += 1)

        if (cnt == k) ans += 1
      }
    }

    println(ans)
  }


  def powerSet[A](xs: List[A]): List[List[A]] =
    xs.foldLeft(List(Nil: List[A]))((accum, elem) => accum.flatMap(l => Seq(l, elem :: l)))

}
