Tag counter