use pipeline counter, not stage counter