Isolate MeasurmentReadCounter example code