added count type to a tag