function main(input){
  input = input.split('\n');
  const [H, W, K] = input[0].split(' ').map(Number);
  const c = input.splice(1, 1+H).map(row => row.replace(/#/g, '1').replace(/\./g, '0').split('').map(Number));

  let sum = 0;
  for(let maskR=0; maskR<= (1<<H)-1; maskR++){
    for(let maskC=0; maskC<= (1<<W)-1; maskC++){
      let black = 0;
      c.forEach((r, i)=>{
        r.forEach((_, j)=>{
          if(c[i][j] === 1){
            if(((maskR >> i) & 1) === 0 && ((maskC >> j) & 1) === 0)
              black++;
          }
        });
      });
      if(black === K){
        sum++;
      }
    }
  }

  console.log(sum);

}

main(require('fs').readFileSync('/dev/stdin', 'utf8').trim());