Adds counter block and unit test