I am aware of a counter approach to do this. I was wondering if there is a nice and compact way to do this.