Added Key counting