shapeless-generic-counter Setup project/plugins.sbt addSbtPlugin("com.github.xuwei-k" % "sbt-shapeless-generic-counter" % "version") sbt shell > Test/compile > shapelessGenericCounterAggregate and then open target/shapeless-generic-count-aggregate.json