[runtime] Move some counters to the mono-counters infrastructure, to break dependencies between utils/ and metadata/.