Test pipeline stage awareness for counters