Add counters to metadata.