#include<bits/stdc++.h>
using namespace std;
using p=pair<int,int>;
#define int long long
#define rep(i,N) for(int i=0;i<N;i++)

signed main(){
  int H,W,K;
  cin>>H>>W>>K;
  vector<string> A(H);
  rep(i,H)cin>>A[i];
  int ans=0;
  rep(ii,1<<H){
    rep(jj,1<<W){
      int count=0;
      rep(i,H){
        rep(j,W){
          if(ii>>i&1)continue;
          if(jj>>j&1)continue;
          if(A[i][j]=='#')count+=1;
        }
      }
      if(count==K)ans+=1;
    }
  }
  cout<<ans<<endl;
  return 0;
}