Merge changes I94ff9d4d,I84cafb79

* changes:
  Add CounterMetric and a single use case.
  Add definition and stub for getMetrics.