n,w=map(int,input().split()) a=list(map(int,input().split())) c=0 for i in range(1,1<>j)&1] B=sum(b) f=0 m=len(b) for ii in range(1<>jj)&1) f|=B-bb==w c+=f print(c)