Fixed counter bug in dumping vocabulary