Create a package for CountsKey and friends

- introduce a Factory for creating CountsKey
- make CountsKey to be an interface rather than an abstract class
Unify API on CountsStore to always use registers