added code for impression count