Add media counters to id generation