"use strict"
const create = () => {
    const input = require("fs").readFileSync("/dev/stdin", "utf8").trim().split("\n");
    const res = {
        "list": input, "index": 0, "max": input.length,
        "hasNext": function () { return this.index < this.max },
        "next": function () { if (!this.hasNext()) { throw "ArrayIndexOutOfBoundsException"; } else { return this.list[this.index++]; } }
    };
    return res;
}
const o = create();
const next = () => o.next()
const nextInt = () => parseInt(o.next())
const nextStrArray = () => o.next().split(" ")
const nextIntArray = () => o.next().split(" ").map(el => parseInt(el))
const nextCharArray = () => o.next().split("")
const hasNext = () => o.hasNext()
const myout = (...x) => console.log(...x)

const row = (c, x) => {
    for (let i = 0; i < c[x].length; i++) {
        c[x][i] = "r"
    }
}

const col = (c, x) => {
    for (let i = 0; i < c.length; i++) {
        c[i][x] = "r"
    }
}

const gen = (num) => {
    let ans = []
    const helper = (num, sub) => {
        if (num == 0) {
            ans.push(sub)
            return
        } else {
            helper(num - 1, [...sub, 0])
            helper(num - 1, [...sub, 1])
        }
    }
    helper(num, [])
    return ans
}

const count = (c) => {
    let ans = 0
    for (let i = 0; i < c.length; i++) {
        for (let j = 0; j < c[0].length; j++) {
            if (c[i][j] == "#") ans++
        }
    }
    return ans
}

const Main = () => {
    let [h, w, k] = nextIntArray()
    let c = []
    while (hasNext()) {
        c.push(next().split(""))
    }
    let ans = 0
    let rPat = gen(h)
    let cPat = gen(w)
    for (let i = 0; i < rPat.length; i++) {
        for (let j = 0; j < cPat.length; j++) {
            let tmp = JSON.parse(JSON.stringify(c))
            for (let l = 0; l < rPat[i].length; l++) {
                if (rPat[i][l] == 1) {
                    row(tmp, l)
                }
            }
            for (let l = 0; l < cPat[j].length; l++) {
                if (cPat[j][l] == 1) {
                    col(tmp, l)
                }
            }
            let cnt = count(tmp)
            if (cnt == k){
              ans++
            }
        }

    }
    console.log(ans)
}
Main()

