function N=counting(vec,eigen,size_vec,size_eigen)
N=zeros(size_vec,2);
N(:,1)=vec;
N(1,2)=1;
time=2;
for j=2:size_eigen
    if eigen(j)>N(time,1)
        N(time,2)=j-1;
        time=time+1;
    end
    if time==size_vec
        break;
    end
end
end

