add a counter to the quick sample