MetricHistogram implements Serializable, SerializationSchema<MetricHistogram> { public Double count() { return values.size() * 1.0D; }  void initialize(String metric, List<Tag> tags); boolean isInitialized(); String getMetric(); List<Tag> getTags(); long getTimestamp(); void update(Double d, long timestamp); void done(); Double avg(); Double min(); Double max(); Double getPercentile(int p); Double count(); Double sum(); @Override String toString(); byte[] serialize(MetricHistogram histo);  }
@Test public void testCount() throws Exception { Assert.assertEquals(100.0D, m.count(), 0.0D); }