counterロジックをfluent-plugin-lossycount.rbに内包