added counter for z-index values