Added object tagging in addition to the global count.