how to create a counter display