script to extract tags, tweaked datastreamer to keep count of tags