Add COUNTER metric type. Fixes Graylog2/graylog2-server#795.