cgi returns tag and count