Numpy Array Count Elements In A Stack