n,x,*a=map(int,open(0).read().split()) print(sum(x>v-30>-1or x<=v<0for v in{v+d for v in a for d in range(30)}))