Initial commit.

The initial commit of the KeyCounter code. Currently functiona.