Fix getValue as it is overriding a Function
Implement asJson in SimpleCountMetric