Day2 B
#include <bits/stdc++.h>
#define int long long
using namespace std;
int n,m,s,c[100005],e[100005];
map<int,int>q;
int cnt=0;
void dfs(int x,int now){
if(x==cnt+1||now>m/e[x]){
++s;
return;
}
for(int i=0;i<=c[x];++i){
dfs(x+1,now);
if(now<=m/e[x]){
now*=e[x];
}
else return;
}
}
signed main(){
cin>>n>>m;
for(int i=1;i<=n;++i){
int x;
cin>>x;
q[x]++;
if(q[x]==1){
e[++cnt]=x;
}
}
sort(e+1,e+cnt+1);
for(int i=1;i<=cnt;++i){
c[i]=q[e[i]];
}
dfs(1,1);
cout<<s;
}