fixed a few small bugs with count tags