First Version of KeyCount program