object Main {
  def main(args: Array[String]): Unit = {
    import scala.io.StdIn.readLine
    val Array(datH, datW, datK) = readLine.split(" ").map(_.toInt)
    val datA = for(i <- 1 to datH) yield readLine

    var ans = 0;

    val maxH = math.pow(2, datH).toInt
    val maxW = math.pow(2, datW).toInt
    for (i <- 0 until maxH; j <- 0 until maxW) {
      def countInLine(ln:Int, chcol:Int): Int = {
        var a = 0;
        for (x <- 0 until datW) {
          if (((chcol & (math.pow(2, x).toInt)) != 0) && (datA(ln)(x) == '#'))
            a += 1
        }
        a
      }

      var a = 0;
      for (x <- 0 until datH) {
        if ((i & (math.pow(2, x).toInt)) != 0) a += countInLine(x, j)
      }

      //println("DEBUG:" + i + " " + j + " " + a)
      if (a == datK) ans += 1
    }

    println(ans)
  }
}
