function Main(input) {
    input = input.trim().split('\n');
    const hwk = input[0].split(' ');
    const h = parseInt(hwk[0], 10), w = parseInt(hwk[1], 10), k = parseInt(hwk[2], 10);
    const hw = [];
    for(let i=0; i<h; i++){
        hw[i] = input[i+1].split('');
    }

    let count = 0, ret = 0;
    for(let i=0; i<=2**h-1; i++){
        for(let j=0; j<=2**w-1; j++){
            let hc = i.toString(2).padStart(h,'0').split('');
            let wc = j.toString(2).padStart(w,'0').split('');
            hc.forEach((hcel, hcid) => {
                wc.forEach((wcel, wcid) => {
                    if(hcel == 0 && wcel == 0){
                        if(hw[hcid][wcid] === '#') count += 1;
                    }
                });
            });
            if(count === k) ret++;
            count = 0;
        }
    }
    console.log(ret);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));