Put counter in so structure is filled correctly